trigger output to a file

Поиск
Список
Период
Сортировка
От pgsql-sql
Тема trigger output to a file
Дата
Msg-id fc.000f567200a768bb000f567200a768bb.a7696b@fc.emc.com.ph
обсуждение исходный текст
Ответы Re: trigger output to a file  (Jan Wieck <JanWieck@Yahoo.com>)
Список 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 по дате отправления:

Предыдущее
От: "datactrl"
Дата:
Сообщение: drop table in PL/pgSQL
Следующее
От: "datactrl"
Дата:
Сообщение: SOME PL/PGSQL PROBLEMS