X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 8A281475925; Sun, 2 Feb 2003 07:24:59 -0500 (EST) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by postgresql.org (Postfix) with ESMTP id D894D4758DC; Sun, 2 Feb 2003 07:24:57 -0500 (EST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id h12COqF08323; Sun, 2 Feb 2003 07:24:52 -0500 (EST) From: Bruce Momjian Message-Id: <200302021224.h12COqF08323@candle.pha.pa.us> Subject: Re: [HACKERS] COPY as non super user In-Reply-To: <20030131111304.597a8549.teixi@rocacorbit.com> To: Jaume Teixi Date: Sun, 2 Feb 2003 07:24:50 -0500 (EST) Cc: pgsql-hackers@postgresql.org, pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/21 X-Sequence-Number: 7219 You can't because the backend opens that file as the super-user. You can use \copy in psql as an normal user, though. --------------------------------------------------------------------------- Jaume Teixi wrote: > how should I use " COPY arti FROM 'ARTI.txt' USING DELIMITERS '|' " as normal user ? > > ---------------------------(end of broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/users-lounge/docs/faq.html > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073