X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 0C3F6475C8B for ; Tue, 25 Feb 2003 10:15:25 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 39235-04 for ; Tue, 25 Feb 2003 10:15:14 -0500 (EST) Received: from localhost.localdomain (unknown [65.217.53.66]) by postgresql.org (Postfix) with ESMTP id CBE49475C60 for ; Tue, 25 Feb 2003 10:10:03 -0500 (EST) Received: from thorn.mmrd.com (thorn.mmrd.com [172.25.10.100]) by localhost.localdomain (8.12.5/8.12.5) with ESMTP id h1PFcB6P025840; Tue, 25 Feb 2003 10:38:11 -0500 Received: from gnvex001.mmrd.com (gnvex001.mmrd.com [192.168.3.55]) by thorn.mmrd.com (8.11.6/8.11.6) with ESMTP id h1PF9pp06844; Tue, 25 Feb 2003 10:09:52 -0500 Received: from camel.mmrd.com ([172.25.5.213]) by gnvex001.mmrd.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id F3HTHG2S; Tue, 25 Feb 2003 10:09:50 -0500 Subject: Re: About COPY From: Robert Treat To: =?ISO-8859-1?Q?Andr=E9s?= Repossi Cc: pgsql-admin@postgresql.org In-Reply-To: <006001c2dcd7$390b0ca0$7c02020a@c1.pjn.gov.ar> References: <006001c2dcd7$390b0ca0$7c02020a@c1.pjn.gov.ar> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Mailer: Ximian Evolution 1.0.8 Date: 25 Feb 2003 10:09:50 -0500 Message-Id: <1046185790.1015.365.camel@camel> Mime-Version: 1.0 X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/387 X-Sequence-Number: 7585 On Tue, 2003-02-25 at 09:07, Andr=E9s Repossi wrote: > Hi, I'm new working with PostgreSQL, and I'm trying to load an ascii > text file to a table using the command copy but it throws me an error > message that it can't parse the line, and I don't really don't know why > is this hapening. >=20 > The sentence I'm using is:=20=20 >=20 > copy tfal from 'C:\\tfal.txt' with delimiter '|' >=20 > Te error message is: ERROR: parser: parse error at or near "delimiter" >=20 >=20 > Does anyone had a trouble like this?, I don't understand what am I doing > wrong. The version of the PGAdmin II I'm using is 1.4.12. >=20 > Could anyone lend me a hand please, thanks, >=20 I think the syntax your looking for is: COPY tfal FROM '/tmp/foo' USING DELIMITERS '|'; At least that's how you'd do it in psql Robert Treat