pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Serge Canizares <serge@ephilosopher.com>
To: Aleksander Rozman - Andy <andy@kksonline.com>
To: admin <pgsql-admin@postgresql.org>
Subject: Re: Tool for filling database
Date: Thu, 16 Nov 2000 16:07:05 -0500
Message-ID: <3A144C79.ED14D1C1@ephilosopher.com> (raw)
References: <20001116205428.97B31139@sonic.kks.net>



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




view thread (3+ messages)  latest in thread

Message-ID: <3A144C79.ED14D1C1@ephilosopher.com>
Permalink:  ../3A144C79.ED14D1C1@ephilosopher.com/
Also on:    postgresql.org/message-id/3A144C79.ED14D1C1@ephilosopher.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: serge@ephilosopher.com, andy@kksonline.com
  Subject: Re: Tool for filling database
  In-Reply-To: <3A144C79.ED14D1C1@ephilosopher.com>
  References: <20001116205428.97B31139@sonic.kks.net> <3A144C79.ED14D1C1@ephilosopher.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox