Tracking SQLs that update data

Поиск
Список
Период
Сортировка
От Phoenix Kiula
Тема Tracking SQLs that update data
Дата
Msg-id AANLkTimmZQ9FEjeekKn9a1F6vyV4CdUPt5-xB5QHv205@mail.gmail.com
обсуждение исходный текст
Ответы Re: Tracking SQLs that update data  (Scott Marlowe <scott.marlowe@gmail.com>)
Re: Tracking SQLs that update data  (Andy Colson <andy@squeakycode.net>)
Список pgsql-general
Hi

I'm having some issues with a code base where several different
programs are updating one "status" column in the DB with their code.
Mostly this is working, but in some cases the status column in a DB is
getting updated when it shouldn't have been, and we're trying to
locate which program did it.

While checking through all the code, I'm also wondering if it is
possible to somehow maintain a log of which SQL did the updating?

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?

Thanks for any ideas.

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

Предыдущее
От: "mark"
Дата:
Сообщение: DDL partitioning with insert trigger issue
Следующее
От: Dave Page
Дата:
Сообщение: Re: Unable to install pg in Win (MVR error)