Re: run COPY as user other than postgres

From: Bill Moran <wmoran(at)potentialtech(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: run COPY as user other than postgres
Date: 2013-04-24 11:14:01
Message-ID: 20130424071401.08f4587e9d3a3d42adcda5af@potentialtech.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


> On 2013-04-23, Kirk Wythers <wythe001(at)umn(dot)edu> wrote:
> > I would like to run the COPY command as a user other than "postgres". I find it a bit of a pain (or at least requiring an extra step or two) to have the postgres user own the files that I am creating with COPY TO. Here is a simple example where the location '/some/path/to/file/file.csv' is owned by another user and it would be very spiffy if I could run the COPY TO as that user. Any ideas?

Write your own client that uses the copy interface to
load a file from wherever and send it to the server.

Or just use the one built in to psql, as Jasen suggested.

--
Bill Moran <wmoran(at)potentialtech(dot)com>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dmitriy Igrishin 2013-04-24 11:21:13 Confusing error message.
Previous Message Jasen Betts 2013-04-24 11:00:44 Re: run COPY as user other than postgres