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};
18 B<rdb2pg> - insert an rdb table into a PostgreSQL database
21 B<rdb2pg> [I<param>=I<value> ...]
24 B<rdb2pg> uses an IRAF-compatible parameter interface.
25 A template parameter file is in F</proj/axaf/simul/lib/uparm/rdb2pg.par>.
28 ==item B<input> I<file>
29 The B<RDB> file to insert into the database. If the given name
30 is the string C<stdin>, it reads from the UNIX standard input stream.
35 B<rdb2pg> will enter the data from an B<RDB> database into a
36 PostgreSQL database table, optionally creating the database and the
37 table if they do not exist. It automatically determines the
38 PostgreSQL data type from the column definition in the B<RDB> file,
39 but may be overriden via a series of definition files or directly
40 via one of its parameters.
42 The target database and table are specified by the C<db> and C<table>
43 parameters. If they do not exist, and the C<createdb> parameter is
44 set, they will be created. Table field definitions are determined
45 in the following order: