pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
What's wrong with COPY rights in 7.3.4?
2+ messages / 2 participants
[nested] [flat]

* What's wrong with COPY rights in 7.3.4?
@ 2003-12-03 15:59  Olivier Hubaut <olivier@scmbb.ulb.ac.be>
  0 siblings, 1 reply; 2+ messages in thread

From: Olivier Hubaut @ 2003-12-03 15:59 UTC (permalink / raw)
  To: pgsql-sql

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 **




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: What's wrong with COPY rights in 7.3.4?
@ 2003-12-06 12:27  Bruce Momjian <pgman@candle.pha.pa.us>
  parent: Olivier Hubaut <olivier@scmbb.ulb.ac.be>
  0 siblings, 0 replies; 2+ messages in thread

From: Bruce Momjian @ 2003-12-06 12:27 UTC (permalink / raw)
  To: Olivier Hubaut <olivier@scmbb.ulb.ac.be>; +Cc: pgsql-sql


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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-12-06 12:27 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-12-03 15:59 What's wrong with COPY rights in 7.3.4? Olivier Hubaut <olivier@scmbb.ulb.ac.be>
2003-12-06 12:27 ` Bruce Momjian <pgman@candle.pha.pa.us>

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