agora inbox for postgres@postgres.berkeley.edu  
help / color / mirror / Atom feed
copy
3+ messages / 3 participants
[nested] [flat]

* copy
@ 1991-06-26 15:16 Reg Anderson <anderson@skdad.usask.ca>
  0 siblings, 0 replies; 3+ messages in thread

From: Reg Anderson @ 1991-06-26 15:16 UTC (permalink / raw)
  To: legacy

Can anyone give me an example of how I can use the copy command to enter data
from a file. Whenever I try, I'm prompted to end the input by typing a "." and then
hitting return. Although the data get copied, I get kicked out of monitor.
Thanks in advance, Reg.



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

* copy
@ 1994-06-28 09:49 J.Plewe <joerg.plewe@mpi-dortmund.mpg.de>
  1994-06-28 17:17 ` Re: copy Paul M. Aoki <aoki@CS.Berkeley.EDU>
  0 siblings, 1 reply; 3+ messages in thread

From: J.Plewe @ 1994-06-28 09:49 UTC (permalink / raw)
  To: legacy

Hello!

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.


- Joerg

*********************************************************************
Dipl. Phys. Joerg Plewe               joerg.plewe@mpi-dortmund.mpg.de
MPI fuer molekulare Physiologie
Rheinlanddamm 201
44139 Dortmund
Germany                               +49 (0)231 1206 384
*********************************************************************
 

==============================================================================
   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.
==============================================================================



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

* Re: copy
  1994-06-28 09:49 copy J.Plewe <joerg.plewe@mpi-dortmund.mpg.de>
@ 1994-06-28 17:17 ` Paul M. Aoki <aoki@CS.Berkeley.EDU>
  0 siblings, 0 replies; 3+ messages in thread

From: Paul M. Aoki @ 1994-06-28 17:17 UTC (permalink / raw)
  To: J.Plewe <joerg.plewe@mpi-dortmund.mpg.de>; +Cc: legacy

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.
==============================================================================



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


end of thread, other threads:[~1994-06-28 17:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1991-06-26 15:16 copy Reg Anderson <anderson@skdad.usask.ca>
1994-06-28 09:49 copy J.Plewe <joerg.plewe@mpi-dortmund.mpg.de>
1994-06-28 17:17 ` Paul M. Aoki <aoki@CS.Berkeley.EDU>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox