Re: non superuser creating flat files

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: non superuser creating flat files
Дата
Msg-id 5996.1187016611@sss.pgh.pa.us
обсуждение исходный текст
Ответ на non superuser creating flat files  ("Terri Reid" <treid@bct-solutions.co.uk>)
Ответы Re: non superuser creating flat files
Re: non superuser creating flat files
Список pgsql-general
"Terri Reid" <treid@bct-solutions.co.uk> writes:
> I have data that is being updated in a table that I need to export to a flat
> file via a database trigger on insert or update. The user performing the
> update will not be a superuser. I've tried to use COPY TO, but that doesn't
> work for non-superusers.

It will if invoked in a trigger function that's marked SECURITY DEFINER
and owned by a superuser.

            regards, tom lane

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

Предыдущее
От: Erik Jones
Дата:
Сообщение: Re: Persistent connections in PHP
Следующее
От: Josh Trutwin
Дата:
Сообщение: Re: Persistent connections in PHP