1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
|
BEGIN {
use File::Basename;
my $THISDIR = dirname $0;
unshift @INC, $THISDIR;
require "testp2pt.pl";
import TestPodIncPlainText;
}
my %options = map { $_ => 1 } @ARGV; ## convert cmdline to options-hash
my $passed = testpodplaintext \%options, $0;
exit( ($passed == 1) ? 0 : -1 ) unless $ENV{HARNESS_ACTIVE};
__END__
#################################################################
use Pod::Usage;
pod2usage( VERBOSE => 2, EXIT => 1 );
=pod
=head1 NAME
B<rdb2pg> - insert an rdb table into a PostgreSQL database
=head1 SYNOPSIS
B<rdb2pg> [I<param>=I<value> ...]
=head1 PARAMETERS
B<rdb2pg> uses an IRAF-compatible parameter interface.
A template parameter file is in F</proj/axaf/simul/lib/uparm/rdb2pg.par>.
=over 4
=item B<input> I<file>
The B<RDB> file to insert into the database. If the given name
is the string C<stdin>, it reads from the UNIX standard input stream.
=back
=head1 DESCRIPTION
B<rdb2pg> will enter the data from an B<RDB> database into a
PostgreSQL database table, optionally creating the database and the
table if they do not exist. It automatically determines the
PostgreSQL data type from the column definition in the B<RDB> file,
but may be overriden via a series of definition files or directly
via one of its parameters.
The target database and table are specified by the C<db> and C<table>
parameters. If they do not exist, and the C<createdb> parameter is
set, they will be created. Table field definitions are determined
in the following order:
=cut
#################################################################
results in:
#################################################################
rdb2pg - insert an rdb table into a PostgreSQL database
rdb2pg [*param*=*value* ...]
rdb2pg uses an IRAF-compatible parameter interface. A template
parameter file is in /proj/axaf/simul/lib/uparm/rdb2pg.par.
The RDB file to insert into the database. If the given name is
the string `stdin', it reads from the UNIX standard input
stream.
rdb2pg will enter the data from an RDB database into a
PostgreSQL database table, optionally creating the database and
the table if they do not exist. It automatically determines the
PostgreSQL data type from the column definition in the RDB file,
but may be overriden via a series of definition files or
directly via one of its parameters.
The target database and table are specified by the `db' and
`table' parameters. If they do not exist, and the `createdb'
parameter is set, they will be created. Table field definitions
are determined in the following order:
#################################################################
while the original version of Text (using pod2text) gives
#################################################################
NAME
rdb2pg - insert an rdb table into a PostgreSQL database
SYNOPSIS
rdb2pg [*param*=*value* ...]
PARAMETERS
rdb2pg uses an IRAF-compatible parameter interface. A template
parameter file is in /proj/axaf/simul/lib/uparm/rdb2pg.par.
input *file*
The RDB file to insert into the database. If the given name
is the string `stdin', it reads from the UNIX standard input
stream.
DESCRIPTION
rdb2pg will enter the data from an RDB database into a
PostgreSQL database table, optionally creating the database and
the table if they do not exist. It automatically determines the
PostgreSQL data type from the column definition in the RDB file,
but may be overriden via a series of definition files or
directly via one of its parameters.
The target database and table are specified by the `db' and
`table' parameters. If they do not exist, and the `createdb'
parameter is set, they will be created. Table field definitions
are determined in the following order:
#################################################################
Thanks for any help. If, as your email indicates, you've not much
time to look at this, I can work around things by calling pod2text()
directly using the official Text.pm.
Diab
-------------
Diab Jerius
djerius@cfa.harvard.edu
|