From: Jeff Self <jself@nngov.com>
To: Pam Wampler <Pam_Wampler@taylorwhite.com>
Cc: 'pgsql-admin@postgresql.org' <pgsql-admin@postgresql.org>
Subject: Re: Is there a utility to load data?
Date: 13 Feb 2002 15:02:16 -0500
Message-ID: <1013630536.4343.6.camel@personnel_test> (raw)
In-Reply-To: <2E4528861499D41199D200A0C9B15BC0012F444B@taylorwhite.com>
References: <2E4528861499D41199D200A0C9B15BC0012F444B@taylorwhite.com>
pg_restore or copy. look in the documentation.
I import data from flat files usually this way:
psql dbname < file
The file contains a line before the data:
COPY "tablename" FROM stdin;
data....
\.
If your delimiter is something other than tab you must specify the
delimiter type this way:
COPY "tablename" FROM stdin USING DELIMITERS '|'; # this is using | as
the delimiter.
On Wed, 2002-02-13 at 14:00, Pam Wampler wrote:
> Is there a postgresql utility to load data from a flat file? Similar to
> oracle sqlldr?
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html--
Jeff Self
Information Technology Analyst
Department of Personnel
City of Newport News
2400 Washington Ave.
Newport News, VA 23607
757-926-6930
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: jself@nngov.com, Pam_Wampler@taylorwhite.com
Subject: Re: Is there a utility to load data?
In-Reply-To: <1013630536.4343.6.camel@personnel_test>
References: <2E4528861499D41199D200A0C9B15BC0012F444B@taylorwhite.com> <1013630536.4343.6.camel@personnel_test>
* 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