Received: from visi.net (arsenal.visi.net [206.246.194.60]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g1DK2fE68025 for ; Wed, 13 Feb 2002 15:02:43 -0500 (EST) (envelope-from jself@nngov.com) Received: from [216.54.6.254] (HELO localhost.localdomain) by visi.net (CommuniGate Pro SMTP 3.5) with ESMTP id 15397649; Wed, 13 Feb 2002 15:01:07 -0500 Subject: Re: Is there a utility to load data? From: Jeff Self To: Pam Wampler Cc: "'pgsql-admin@postgresql.org'" In-Reply-To: <2E4528861499D41199D200A0C9B15BC0012F444B@taylorwhite.com> References: <2E4528861499D41199D200A0C9B15BC0012F444B@taylorwhite.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 13 Feb 2002 15:02:16 -0500 Message-Id: <1013630536.4343.6.camel@personnel_test> Mime-Version: 1.0 X-Archive-Number: 200202/163 X-Sequence-Number: 3320 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