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: (view raw, whole thread or download thread mbox)
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()


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
Previous:From: Bruce MomjianDate: 2000-11-03 15:11:37
Subject: Re: 7.0.3 branded

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