figuring out if there was a transaction in this connection already

Поиск
Список
Период
Сортировка
От Kundham Saare
Тема figuring out if there was a transaction in this connection already
Дата
Msg-id 20040925141619.19932.qmail@web51707.mail.yahoo.com
обсуждение исходный текст
Ответы Re: figuring out if there was a transaction in this connection already  (Michael Fuhr <mike@fuhr.org>)
Список 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 по дате отправления:

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: Replication options?
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: figuring out if there was a transaction in this connection already