From: | "Terri Reid" <treid(at)edp(dot)co(dot)uk> |
---|---|
To: | "'Tom Lane'" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "'Terri Reid'" <treid(at)bct-solutions(dot)co(dot)uk> |
Cc: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: non superuser creating flat files |
Date: | 2007-08-13 14:58:59 |
Message-ID: | 004101c7ddba$7df67d70$800101df@TERRILAPTOP |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Tom,
Thank you very much, that works now.
Terri Reid
01925 732359
-----Original Message-----
From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Sent: 13 August 2007 15:50
To: Terri Reid
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] non superuser creating flat files
"Terri Reid" <treid(at)bct-solutions(dot)co(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Erik Jones | 2007-08-13 15:06:34 | Re: non superuser creating flat files |
Previous Message | Josh Trutwin | 2007-08-13 14:55:22 | Re: Persistent connections in PHP |