Re: Populating a database - Mailing list pgsql-novice

From Bruno Wolff III
Subject Re: Populating a database
Date
Msg-id 20021104140005.GB5617@wolff.to
Whole thread Raw
In response to Populating a database  (papapep <papapep@gmx.net>)
List pgsql-novice
On Mon, Nov 04, 2002 at 14:20:49 +0100,
  papapep <papapep@gmx.net> wrote:
> How can I populate a database with data I've got in a spreadsheet
> without having to format it with all the terrible format with commas,
> sql orders and so on??
> Or, at least, which is the easiest way to do it?

Normally using \copy in psql will work fairly well with csv or tsv files.

If you need to process the data before loading it into tables, you might
consider using perl. It is fairly easy to massage dta and you can use
COPY statements to do the actual loads.

pgsql-novice by date:

Previous
From: papapep
Date:
Subject: Populating a database
Next
From: Tom Lane
Date:
Subject: Re: owner of type 'mmm' apperars to be invalid