Re: Tracking SQLs that update data

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Tracking SQLs that update data
Дата
Msg-id 26246.1276572609@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Tracking SQLs that update data  (Scott Marlowe <scott.marlowe@gmail.com>)
Список pgsql-general
Scott Marlowe <scott.marlowe@gmail.com> writes:
> On Mon, Jun 14, 2010 at 5:55 PM, Phoenix Kiula <phoenix.kiula@gmail.com> wrote:
>> My question: how can I set up a "RULE" so that when a specific column
>> is updated, a separate table also logs which update SQL was issued?

> It's far easier to adjust the logging.

Or, if you're worried about actions from functions, use a trigger to do
the logging.  There are approximately no cases where a rule is really
better than a trigger :-(

            regards, tom lane

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

Предыдущее
От: Adam Alkins
Дата:
Сообщение: Re: Does enterprisedb.com down?
Следующее
От: "M. Bashir Al-Noimi"
Дата:
Сообщение: Re: Does enterprisedb.com down?