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#################################################################
1N/A use Pod::Usage;
1N/A pod2usage( VERBOSE => 2, EXIT => 1 );
1N/A
1N/A=pod
1N/A
1N/A=head1 NAME
1N/A
1N/AB<rdb2pg> - insert an rdb table into a PostgreSQL database
1N/A
1N/A=head1 SYNOPSIS
1N/A
1N/AB<rdb2pg> [I<param>=I<value> ...]
1N/A
1N/A=head1 PARAMETERS
1N/A
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
1N/A=item B<input> I<file>
1N/A
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
1N/A=back
1N/A
1N/A=head1 DESCRIPTION
1N/A
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
1N/A=cut
1N/A
1N/A#################################################################
1N/A
1N/Aresults in:
1N/A
1N/A
1N/A#################################################################
1N/A
1N/A rdb2pg - insert an rdb table into a PostgreSQL database
1N/A
1N/A rdb2pg [*param*=*value* ...]
1N/A
1N/A rdb2pg uses an IRAF-compatible parameter interface. A template
1N/A parameter file is in /proj/axaf/simul/lib/uparm/rdb2pg.par.
1N/A
1N/A The RDB file to insert into the database. If the given name is
1N/A the string `stdin', it reads from the UNIX standard input
1N/A stream.
1N/A
1N/A rdb2pg will enter the data from an RDB database into a
1N/A PostgreSQL database table, optionally creating the database and
1N/A the table if they do not exist. It automatically determines the
1N/A PostgreSQL data type from the column definition in the RDB file,
1N/A but may be overriden via a series of definition files or
1N/A directly via one of its parameters.
1N/A
1N/A The target database and table are specified by the `db' and
1N/A `table' parameters. If they do not exist, and the `createdb'
1N/A parameter is set, they will be created. Table field definitions
1N/A are determined in the following order:
1N/A
1N/A
1N/A#################################################################
1N/A
1N/Awhile the original version of Text (using pod2text) gives
1N/A
1N/A#################################################################
1N/A
1N/ANAME
1N/A rdb2pg - insert an rdb table into a PostgreSQL database
1N/A
1N/ASYNOPSIS
1N/A rdb2pg [*param*=*value* ...]
1N/A
1N/APARAMETERS
1N/A rdb2pg uses an IRAF-compatible parameter interface. A template
1N/A parameter file is in /proj/axaf/simul/lib/uparm/rdb2pg.par.
1N/A
1N/A input *file*
1N/A The RDB file to insert into the database. If the given name
1N/A is the string `stdin', it reads from the UNIX standard input
1N/A stream.
1N/A
1N/ADESCRIPTION
1N/A rdb2pg will enter the data from an RDB database into a
1N/A PostgreSQL database table, optionally creating the database and
1N/A the table if they do not exist. It automatically determines the
1N/A PostgreSQL data type from the column definition in the RDB file,
1N/A but may be overriden via a series of definition files or
1N/A directly via one of its parameters.
1N/A
1N/A The target database and table are specified by the `db' and
1N/A `table' parameters. If they do not exist, and the `createdb'
1N/A parameter is set, they will be created. Table field definitions
1N/A are determined in the following order:
1N/A
1N/A
1N/A#################################################################
1N/A
1N/A
1N/AThanks for any help. If, as your email indicates, you've not much
1N/Atime to look at this, I can work around things by calling pod2text()
1N/Adirectly using the official Text.pm.
1N/A
1N/ADiab
1N/A
1N/A-------------
1N/ADiab Jerius
1N/Adjerius@cfa.harvard.edu
1N/A