Re: How to check that I am in transaction inside backend

Поиск
Список
Период
Сортировка
От Christof Petig
Тема Re: How to check that I am in transaction inside backend
Дата
Msg-id 3A02D710.447A94C9@wtal.de
обсуждение исходный текст
Ответ на How to check that I am in transaction inside backend  (Denis Perchine <dyp@perchine.com>)
Список pgsql-hackers
Denis Perchine wrote:

> Hello,
>
> Having some expirience with catching errors with BLOBs, I realised, that it
> is really hard to understand that you forget to enclose BLOB operations in
> transaction...
>
> I would like to add a check for each BLOB operation which will check whether
> we are in transaction, and if not it will issue a notice.
>
> The question is how correctly check that I am in transaction.

simply use IsTransactionBlock()

Christof




В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Ross J. Reedstrom"
Дата:
Сообщение: Re: Re: [COMMITTERS] pgsql/contrib/pg_dumpaccounts (Makefile README pg_dumpaccounts.sh)
Следующее
От: Christof Petig
Дата:
Сообщение: Re: AW: Re: [GENERAL] Query caching