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 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Ross J. Reedstrom | 2000-11-03 15:29:07 | Re: Re: [COMMITTERS] pgsql/contrib/pg_dumpaccounts (Makefile README pg_dumpaccounts.sh) |
Previous Message | Bruce Momjian | 2000-11-03 15:11:37 | Re: 7.0.3 branded |