3 my $THISDIR = dirname $0;
4 unshift @INC, $THISDIR;
6 import TestPodIncPlainText;
9 my %options = map { $_ => 1 } @ARGV; ## convert cmdline to options-hash
10 my $passed = testpodplaintext \%options, $0;
11 exit( ($passed == 1) ? 0 : -1 ) unless $ENV{HARNESS_ACTIVE};
17 #################################################################
19 pod2usage( VERBOSE => 2, EXIT => 1 );
25 B<rdb2pg> - insert an rdb table into a PostgreSQL database
29 B<rdb2pg> [I<param>=I<value> ...]
33 B<rdb2pg> uses an IRAF-compatible parameter interface.
34 A template parameter file is in F</proj/axaf/simul/lib/uparm/rdb2pg.par>.
38 =item B<input> I<file>
40 The B<RDB> file to insert into the database. If the given name
41 is the string C<stdin>, it reads from the UNIX standard input stream.
48 B<rdb2pg> will enter the data from an B<RDB> database into a
49 PostgreSQL database table, optionally creating the database and the
50 table if they do not exist. It automatically determines the
51 PostgreSQL data type from the column definition in the B<RDB> file,
52 but may be overriden via a series of definition files or directly
53 via one of its parameters.
55 The target database and table are specified by the C<db> and C<table>
56 parameters. If they do not exist, and the C<createdb> parameter is
57 set, they will be created. Table field definitions are determined
58 in the following order:
62 #################################################################
67 #################################################################
69 rdb2pg - insert an rdb table into a PostgreSQL database
71 rdb2pg [*param*=*value* ...]
73 rdb2pg uses an IRAF-compatible parameter interface. A template
74 parameter file is in /proj/axaf/simul/lib/uparm/rdb2pg.par.
76 The RDB file to insert into the database. If the given name is
77 the string `stdin', it reads from the UNIX standard input
80 rdb2pg will enter the data from an RDB database into a
81 PostgreSQL database table, optionally creating the database and
82 the table if they do not exist. It automatically determines the
83 PostgreSQL data type from the column definition in the RDB file,
84 but may be overriden via a series of definition files or
85 directly via one of its parameters.
87 The target database and table are specified by the `db' and
88 `table' parameters. If they do not exist, and the `createdb'
89 parameter is set, they will be created. Table field definitions
90 are determined in the following order:
93 #################################################################
95 while the original version of Text (using pod2text) gives
97 #################################################################
100 rdb2pg - insert an rdb table into a PostgreSQL database
103 rdb2pg [*param*=*value* ...]
106 rdb2pg uses an IRAF-compatible parameter interface. A template
107 parameter file is in /proj/axaf/simul/lib/uparm/rdb2pg.par.
110 The RDB file to insert into the database. If the given name
111 is the string `stdin', it reads from the UNIX standard input
115 rdb2pg will enter the data from an RDB database into a
116 PostgreSQL database table, optionally creating the database and
117 the table if they do not exist. It automatically determines the
118 PostgreSQL data type from the column definition in the RDB file,
119 but may be overriden via a series of definition files or
120 directly via one of its parameters.
122 The target database and table are specified by the `db' and
123 `table' parameters. If they do not exist, and the `createdb'
124 parameter is set, they will be created. Table field definitions
125 are determined in the following order:
128 #################################################################
131 Thanks for any help. If, as your email indicates, you've not much
132 time to look at this, I can work around things by calling pod2text()
133 directly using the official Text.pm.
139 djerius@cfa.harvard.edu