agora inbox for postgres@postgres.berkeley.edu
help / color / mirror / Atom feedFrom: Paul M. Aoki <aoki@CS.Berkeley.EDU>
To: J.Plewe <joerg.plewe@mpi-dortmund.mpg.de>
Cc: postgres@postgres.Berkeley.EDU
Subject: Re: copy
Date: Tue, 28 Jun 94 10:17:01 -0700
Message-ID: <199406281717.KAA11377@faerie.CS.Berkeley.EDU> (raw)
In-Reply-To: <9406280949.AA10254@dl.mpi-dortmund.mpg.de>
joerg.plewe@mpi-dortmund.mpg.de (J.Plewe) writes:
> When I'm using the copy-command, I have write permission to the
> postgres directory, e.g. /usr/local/postgres.
> Is this correct??
> I have no access to my own directories, because they are not
> open for postgres.
i'm not sure i understand your point. the copy command does run as
the postgres user (since postgres does not run suid root and therefore
cannot become you) so all directories to/from which you copy must be
writable/readable by the postgres user. also the target/source directory
will be on the server machine, not the client machine.
one could get around this by shipping everything to the frontend app
and having the client side of libpq write the file. postgres doesn't
do that. since the code exists for copy to/from stdout/stdin this
wouldn't be too hard to add (in principle).
--
Paul M. Aoki | CS Div., Dept. of EECS, UCB | aoki@CS.Berkeley.EDU
| Berkeley, CA 94720-1776 | ...!uunet!ucbvax!aoki
==============================================================================
To add/remove yourself to/from the POSTGRES mailing list: send mail with
the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU"
If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
a human will deal with it. DO NOT post to the "postgres" mailing list.
==============================================================================
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: postgres@postgres.berkeley.edu
Cc: aoki@CS.Berkeley.EDU, joerg.plewe@mpi-dortmund.mpg.de
Subject: Re: copy
In-Reply-To: <199406281717.KAA11377@faerie.CS.Berkeley.EDU>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox