Re: nested transaction

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Rodríguez Rodríguez, Pere" <prr(at)hosppal(dot)es>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: nested transaction
Date: 2004-08-10 14:26:20
Message-ID: 28116.1092147980@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

=?ISO-8859-1?Q?=22Rodr=EDguez_Rodr=EDguez=2C_Pere=22?= <prr(at)hosppal(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Hallgren 2004-08-10 14:31:45 User Defined Types and SQL2003
Previous Message Tom Lane 2004-08-10 14:17:28 Re: Using connection after fork