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

From: Raymond O'Donnell <rod(at)iol(dot)ie>
To: rmd22 <rohit(dot)dhamane(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Modfying source code to read tuples before and after UPDATE...how to?
Date: 2010-11-05 16:16:37
Message-ID: 4CD42DE5.70609@iol.ie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)iol(dot)ie

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2010-11-05 16:19:59 Re: Alter Table + Default Value + Serializable
Previous Message John R Pierce 2010-11-05 15:53:08 Re: Cloning database without dump/restore