Re: Trigger in transaction

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: daniel(dot)carlsson(at)gimlisoft(dot)se
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Trigger in transaction
Date: 2003-05-25 03:41:49
Message-ID: 3067.1053834109@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Daniel Carlsson <daniel(dot)carlsson(at)gimlisoft(dot)se> writes:
> I can't figure out why the changedate is not updated.

CURRENT_TIMESTAMP doesn't advance inside a transaction. See
http://www.postgresql.org/docs/view.php?version=7.3&idoc=0&file=functions-datetime.html#FUNCTIONS-DATETIME-CURRENT

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-05-25 03:43:20 Re: Iterating through individual fields of OLD/NEW records in plpgsql trigger
Previous Message Tom Lane 2003-05-25 03:31:28 Re: Transaction Triggers!