figuring out if there was a transaction in this connection already

From: Kundham Saare <oxb1001001001(at)yahoo(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: figuring out if there was a transaction in this connection already
Date: 2004-09-25 14:16:19
Message-ID: 20040925141619.19932.qmail@web51707.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,
I would like to be able to figure out if a table has
been updated in this connection from within a C
trigger.

I have already tried to the use a query with currval
on the autoincremented primary key but that exits the
trigger with

table.currval is not yet defined in this session

Is there a way to trap / ignore this error? Or a way
to check if there was a transaction in this connection
before.

Thanks for any input.

Best wishes,

M

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Fuhr 2004-09-25 14:59:17 Re: figuring out if there was a transaction in this connection already
Previous Message Jan Wieck 2004-09-25 14:01:08 Re: Replication options?