Re: Modfying source code to read tuples before and after UPDATE...how to?

Поиск
Список
Период
Сортировка
От Raymond O'Donnell
Тема Re: Modfying source code to read tuples before and after UPDATE...how to?
Дата
Msg-id 4CD42DE5.70609@iol.ie
обсуждение исходный текст
Ответ на Modfying source code to read tuples before and after UPDATE...how to?  (rmd22 <rohit.dhamane@gmail.com>)
Ответы Re: Modfying source code to read tuples before and after UPDATE...how to?  (rmd22 <rohit.dhamane@gmail.com>)
Список pgsql-general
On 05/11/2010 11:17, rmd22 wrote:
>
> Hello there,
>
> I am a total novice to Postgresql, but very much interested in learning how
> it works.
>
> I have to modify the source code of Postgresql-9.0.1 such that whenever I
> run an UPDATE command it should print out the old and new tuples. Since I am
> a beginner I would appreciate it a lot if anyone of you out there could
> point me in right direction. Which files will I need to modify to get the
> desired results?

When you say "print out", what do you mean exactly? Also, could you
achieve what you want with a trigger?

Ray.

--
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie

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

Предыдущее
От: John R Pierce
Дата:
Сообщение: Re: Cloning database without dump/restore
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Alter Table + Default Value + Serializable