Re: run COPY as user other than postgres

Поиск
Список
Период
Сортировка
От Ryan Kelly
Тема Re: run COPY as user other than postgres
Дата
Msg-id 20130423202027.GA25428@llserver.lakeliving.com
обсуждение исходный текст
Ответ на run COPY as user other than postgres  (Kirk Wythers <wythe001@umn.edu>)
Список pgsql-general
On Tue, Apr 04/23/13, 2013 at 03:11:21PM -0500, Kirk Wythers 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?
>

You should use \copy if you're using psql. That will run on the client
side, as the user running psql.

-Ryan Kelly



В списке pgsql-general по дате отправления:

Предыдущее
От: Kirk Wythers
Дата:
Сообщение: run COPY as user other than postgres
Следующее
От: Quentin Hartman
Дата:
Сообщение: Re: Negative replication lag?