Skip site navigation (1) Skip section navigation (2)

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

From: Christof Petig <christof(dot)petig(at)wtal(dot)de>
To: Denis Perchine <dyp(at)perchine(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: How to check that I am in transaction inside backend
Date: 2000-11-03 15:17:36
Message-ID: 3A02D710.447A94C9@wtal.de (view raw or flat)
Thread:
Lists: 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



In response to

pgsql-hackers by date

Next:From: Ross J. ReedstromDate: 2000-11-03 15:29:07
Subject: Re: Re: [COMMITTERS] pgsql/contrib/pg_dumpaccounts (Makefile README pg_dumpaccounts.sh)
Previous:From: Bruce MomjianDate: 2000-11-03 15:11:37
Subject: Re: 7.0.3 branded

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group