Re: Modfying source code to read tuples before and after UPDATE...how to? - Mailing list pgsql-general

From Raymond O'Donnell
Subject Re: Modfying source code to read tuples before and after UPDATE...how to?
Date
Msg-id 4CD42DE5.70609@iol.ie
Whole thread Raw
In response to Modfying source code to read tuples before and after UPDATE...how to?  (rmd22 <rohit.dhamane@gmail.com>)
Responses Re: Modfying source code to read tuples before and after UPDATE...how to?  (rmd22 <rohit.dhamane@gmail.com>)
List 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 by date:

Previous
From: John R Pierce
Date:
Subject: Re: Cloning database without dump/restore
Next
From: Tom Lane
Date:
Subject: Re: Alter Table + Default Value + Serializable