=?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