Non-superuser creating a flat file

From: "Terri Reid" <treid(at)edp(dot)co(dot)uk>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Non-superuser creating a flat file
Date: 2007-08-13 14:07:19
Message-ID: 003001c7ddb3$478f5a10$800101df@TERRILAPTOP
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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. Is there some other functionality that can write
out flat files? I'm looking for something similar to the Oracle UTL file
functionality, as ideally I'd want to append the data to an existing file
and be able to manipulate the data before I wrote it out.

Thanks

Terri

Terri Reid

BCT Software Solutions

Mail: treid(at)edp(dot)co(dot)uk

Tel: 01925 732359

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-08-13 14:09:15 Re: Unable to connect to PostgreSQL server via PHP
Previous Message Tom Lane 2007-08-13 13:51:46 Re: "Out of memory" errors..