X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 22A37D1B461 for ; Sat, 6 Dec 2003 12:27:59 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 30933-01 for ; Sat, 6 Dec 2003 08:27:30 -0400 (AST) Received: from candle.pha.pa.us (candle.pha.pa.us [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 5FFFDD1B445 for ; Sat, 6 Dec 2003 08:27:26 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id hB6CRQY10676; Sat, 6 Dec 2003 07:27:26 -0500 (EST) From: Bruce Momjian Message-Id: <200312061227.hB6CRQY10676@candle.pha.pa.us> Subject: Re: What's wrong with COPY rights in 7.3.4? In-Reply-To: <3FCE0865.5000902@scmbb.ulb.ac.be> To: Olivier Hubaut Date: Sat, 6 Dec 2003 07:27:26 -0500 (EST) Cc: pgsql-sql@postgresql.org X-Mailer: ELM [version 2.4ME+ PL108 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/52 X-Sequence-Number: 16218 COPY is done with the rights of the server backend, not your client. You can also use \copy in psql and that is done in the client. --------------------------------------------------------------------------- Olivier Hubaut wrote: > Hi, > > I tried to use the COPY function in v7.3.4 but I have a problem. > According to the documentation, anyboy having the good rights on the > table he want to copy could do it without any problem. > > When I tried it, I found that using this command is impossible if you > aren't an administrator for the instance of PostgreSQL. > > Is it a bug or a *feature*? > > The commands I tried are the followings: > > COPY table FROM '/file.sql'; > > and > > COPY table TO '/file.sql'; > > Thanks for responding. > > -- > Ci-git une signature avortee. > ** RIP ** > > > ---------------------------(end of broadcast)--------------------------- > TIP 8: explain analyze is your friend > -- 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