Re: nested transaction - Mailing list pgsql-general

From Tom Lane
Subject Re: nested transaction
Date
Msg-id 28116.1092147980@sss.pgh.pa.us
Whole thread Raw
In response to nested transaction  ("Rodríguez Rodríguez, Pere" <prr@hosppal.es>)
List pgsql-general
=?ISO-8859-1?Q?=22Rodr=EDguez_Rodr=EDguez=2C_Pere=22?= <prr@hosppal.es> writes:
> Is possible to detect from pA that there is a transaction and so do a
> savepoint instead of a begin?

Depends on what you're programming in, but in principle yes.  If using
libpq, see PQtransactionStatus().

            regards, tom lane

pgsql-general by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: nested transaction
Next
From: "Rob Klaus"
Date:
Subject: Relation does not exist