figuring out if there was a transaction in this connection already - Mailing list pgsql-general

From Kundham Saare
Subject figuring out if there was a transaction in this connection already
Date
Msg-id 20040925141619.19932.qmail@web51707.mail.yahoo.com
Whole thread Raw
Responses Re: figuring out if there was a transaction in this connection already
List 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

pgsql-general by date:

Previous
From: Jan Wieck
Date:
Subject: Re: Replication options?
Next
From: Michael Fuhr
Date:
Subject: Re: figuring out if there was a transaction in this connection already