Lukas Kahwe Smith <smith(at)pooteeweet(dot)org> writes:
> Err, I think you misunderstood what I said. My implementation uses
> SAVEPOINTs already. The point is having some API where you do not have
> to care of you are already in a transaction or not.
It's not that hard, is it?
if (PQtransactionStatus(conn) == PQTRANS_IDLE)
PQexec(conn, "BEGIN");
else
PQexec(conn, "SAVEPOINT foo");
regards, tom lane
In response to
Responses
pgsql-hackers by date
| Next: | From: Jeff Davis | Date: 2007-01-02 17:48:22 |
| Subject: Re: Sync Scan update |
| Previous: | From: Joshua D. Drake | Date: 2007-01-02 17:26:05 |
| Subject: Re: TODO: Add a GUC to control whether BEGIN inside |