Re: A generic trigger to log chanes on database tables

Поиск
Список
Период
Сортировка
От Jim Nasby
Тема Re: A generic trigger to log chanes on database tables
Дата
Msg-id AB3E24CD-0A2D-44D9-8169-07E4EF8A39B7@decibel.org
обсуждение исходный текст
Ответ на A generic trigger to log chanes on database tables  ("Charles Ambrose" <jamjam360@gmail.com>)
Список pgsql-general
On Nov 23, 2006, at 10:32 AM, Charles Ambrose wrote:
> Is there a way that I could create a trigger that logs the changes
> (updates, deletes) of a table? I mean, I want to put in a table the
> changes to any table in a database and also put in the table the
> column that was modified and the corresponding value.

If you want a table-generic method, look at how Slony does it. You
probably won't want to use exactly that code, but it should get you
close.
--
Jim Nasby                                            jim@nasby.net
EnterpriseDB      http://enterprisedb.com      512.569.9461 (cell)



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

Предыдущее
От: Jim Nasby
Дата:
Сообщение: Re: Connecting via ssh tunnel
Следующее
От: Jim Nasby
Дата:
Сообщение: Re: SSL error: decryption failed or bad record mac