agora inbox for postgres@postgres.berkeley.edu  
help / color / mirror / Atom feed
From: Paul M. Aoki <aoki@postgres.Berkeley.EDU>
To: Niranjan Perera <perera@pollux.cs.uga.edu>
Cc: postgres@postgres.Berkeley.EDU
Subject: Re: copy command ( 4.1 )
Date: Fri, 20 May 94 15:32:58 -0700
Message-ID: <199405202232.PAA00775@faerie.CS.Berkeley.EDU> (raw)
In-Reply-To: <9405202029.AA01448@pollux.cs.uga.edu>

Niranjan Perera <perera@pollux.cs.uga.edu> writes:
> Is there a way to get postgres to dump the classes out, and the file
> be owned by the user instead of "postgres" ?

not using the copy command into a file.  copy runs in the server, 
which runs as user postgres.  only the superuser (root) can become
another user.

however, there's nothing to keep you from running "copy to stdout"
and directing the result of that into a file.
--
  Paul M. Aoki  |  CS Div., Dept. of EECS, UCB  |  aoki@postgres.Berkeley.EDU
                |  Berkeley, CA 94720           |  ...!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@postgres.Berkeley.EDU, perera@pollux.cs.uga.edu
  Subject: Re: copy command ( 4.1 )
  In-Reply-To: <199405202232.PAA00775@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