1N/ABEGIN {
1N/A use File::Basename;
1N/A my $THISDIR = dirname $0;
1N/A unshift @INC, $THISDIR;
1N/A require "testp2pt.pl";
1N/A import TestPodIncPlainText;
1N/A}
1N/A
1N/Amy %options = map { $_ => 1 } @ARGV; ## convert cmdline to options-hash
1N/Amy $passed = testpodplaintext \%options, $0;
1N/Aexit( ($passed == 1) ? 0 : -1 ) unless $ENV{HARNESS_ACTIVE};
1N/A
1N/A
1N/A__END__
1N/A
1N/A
1N/A==head1 NAME
1N/AB<rdb2pg> - insert an rdb table into a PostgreSQL database
1N/A
1N/A==head1 SYNOPSIS
1N/AB<rdb2pg> [I<param>=I<value> ...]
1N/A
1N/A==head1 PARAMETERS
1N/AB<rdb2pg> uses an IRAF-compatible parameter interface.
1N/AA template parameter file is in F</proj/axaf/simul/lib/uparm/rdb2pg.par>.
1N/A
1N/A==over 4
1N/A==item B<input> I<file>
1N/AThe B<RDB> file to insert into the database. If the given name
1N/Ais the string C<stdin>, it reads from the UNIX standard input stream.
1N/A
1N/A==back
1N/A
1N/A==head1 DESCRIPTION
1N/AB<rdb2pg> will enter the data from an B<RDB> database into a
1N/APostgreSQL database table, optionally creating the database and the
1N/Atable if they do not exist. It automatically determines the
1N/APostgreSQL data type from the column definition in the B<RDB> file,
1N/Abut may be overriden via a series of definition files or directly
1N/Avia one of its parameters.
1N/A
1N/AThe target database and table are specified by the C<db> and C<table>
1N/Aparameters. If they do not exist, and the C<createdb> parameter is
1N/Aset, they will be created. Table field definitions are determined
1N/Ain the following order:
1N/A