Re: Tool for filling database - Mailing list pgsql-admin

From Serge Canizares
Subject Re: Tool for filling database
Date
Msg-id 3A144C79.ED14D1C1@ephilosopher.com
Whole thread Raw
In response to Tool for filling database  (Aleksander Rozman - Andy <andy@kksonline.com>)
List pgsql-admin

Aleksander Rozman - Andy wrote:

>Has anybody of users found any tools that could be used for
>filling database with lot of data....I mean with nice interface so that you
>can easily fill different tables....something like Access maybe....but not
>do bg.  . . .

>Yeah a lot of typing....

Well, if you have to do lots of typing anyway, why you don't you stick it into
a text file, say delimited using '|' marks, and then just use the "copy"
command in postgreSQL to populate the table.  Then create indices on the table,
and you are good to go.

That's what I do. (In fact, I write little shell scripts to speed up the
process, and redo the work in case I ever feel like dropping and recreating the
table.  After you write one shell script, modifying it to handle other tables
is easy.)

Moreover the pg manual says it's very fast to use "copy" to populate your
table.

-serge


pgsql-admin by date:

Previous
From: Aleksander Rozman - Andy
Date:
Subject: Tool for filling database
Next
From: kumar1@home.com (Prasanth A. Kumar)
Date:
Subject: Re: Tool for filling database