trigger output to a file - Mailing list pgsql-sql

From pgsql-sql
Subject trigger output to a file
Date
Msg-id fc.000f567200a768bb000f567200a768bb.a7696b@fc.emc.com.ph
Whole thread Raw
Responses Re: trigger output to a file
List pgsql-sql
Hello Everyone,

Here's my simple question.

I just want to know/get the recent changes made to a table.
Deeper? I wanted the Postgresql server to *publish* every
changes made to a table (similar to replication, incremental transfer,
etc.).
What is the best way to go about it?

My idea is to create a trigger for every insert/update that will
select the new/updated record and output it to a file. Or better
yet, I would like to output the actual sql query to file.
Is it possible to output the result of an sql query from a trigger
to a file? How?

I would appreciate any answer. Thank you very much.
Sherwin



pgsql-sql by date:

Previous
From: "datactrl"
Date:
Subject: drop table in PL/pgSQL
Next
From: "datactrl"
Date:
Subject: SOME PL/PGSQL PROBLEMS