Commit | Line | Data |
360aca43 |
1 | NAME |
2 | rdb2pg - insert an rdb table into a PostgreSQL database |
3 | |
4 | SYNOPSIS |
5 | rdb2pg [*param*=*value* ...] |
6 | |
7 | PARAMETERS |
8 | rdb2pg uses an IRAF-compatible parameter interface. A template |
9 | parameter file is in /proj/axaf/simul/lib/uparm/rdb2pg.par. |
10 | |
11 | input *file* |
12 | The RDB file to insert into the database. If the given name |
13 | is the string `stdin', it reads from the UNIX standard input |
14 | stream. |
15 | |
16 | |
17 | DESCRIPTION |
18 | rdb2pg will enter the data from an RDB database into a |
19 | PostgreSQL database table, optionally creating the database and |
20 | the table if they do not exist. It automatically determines the |
21 | PostgreSQL data type from the column definition in the RDB file, |
22 | but may be overriden via a series of definition files or |
23 | directly via one of its parameters. |
24 | |
25 | The target database and table are specified by the `db' and |
26 | `table' parameters. If they do not exist, and the `createdb' |
27 | parameter is set, they will be created. Table field definitions |
28 | are determined in the following order: |
29 | |