Re: pg_query transaction: auto rollback? begin or start?? commit or end??? - Mailing list pgsql-general

From Karsten Hilbert
Subject Re: pg_query transaction: auto rollback? begin or start?? commit or end???
Date
Msg-id 20080724071936.GA3869@merkur.hilbert.loc
Whole thread Raw
In response to Re: pg_query transaction: auto rollback? begin or start?? commit or end???  (Chris <dmagick@gmail.com>)
List pgsql-general
>  How can I
> > even include something *outside* a transaction *inside* it

I was referring to conditions outside the database which you
detect while the transaction is in progress and which
invalidate the semantic integrity of the transaction as a
whole. Under such circumstances you would want to issue a
rollback even though technically the transaction went
through an *could* be committed. That's about the only case
where it makes sense to have a keyword separate from "end",
namely "rollback". Because you have the choice: either "end"
the transaction or "rollback". All other cases just need
"end". They will rollback or commit depending on whether
there were any unhandled errors.

Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346

pgsql-general by date:

Previous
From: "Harvey, Allan AC"
Date:
Subject: Re: 8.3.3 regression test on SCO 5.0.7
Next
From: "Fco. Mario Barcala" Rodríguez
Date:
Subject: Re: Full text index without accents