Re: Transaction aborts on syntax error.

From: ramirez(at)idconcepts(dot)org (Edwin S(dot) Ramirez)
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Transaction aborts on syntax error.
Date: 2004-02-13 22:15:30
Message-ID: 8d9c3e20.0402131415.61a1f419@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Can we clarify what is meant by the client? It is my
expectation/desire that the client library would handle this as a
setting similar to "AutoCommit", which would implicitly protect each
statement within a nested block (savepoint), causing only itself to
abort. Such as, "OnError=>[abort|continue]", abort being the default.

Performance considerations are currently secondary to the fact that
the transaction abort problem can only be solved by nested
transactions. In their current state transactions are not
convinient/practical (for me).

-ESR-

tgl(at)sss(dot)pgh(dot)pa(dot)us (Tom Lane) wrote in message news:<2098(dot)1076683808(at)sss(dot)pgh(dot)pa(dot)us>...
> "Zeugswetter Andreas SB SD" <ZeugswetterA(at)spardat(dot)at> writes:
> > It seems to me, that leaving all this to the client (which implicitly
> > inserts savepoints) can never be as efficient as a serverside feature.
>
> I think this is an overly narrow view of "efficiency". With client
> control, the client can insert savepoints whereever it needs them,
> which might not be for every statement. Savepoints that you don't
> actually need are going to be a fairly expensive overhead, AFAICS.
>
> Also, in the V3 protocol, sending along extra BEGIN and COMMIT commands
> doesn't have to cost you any extra network round trips.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-02-13 23:28:10 Re: pg_restore problems and suggested resolution
Previous Message Joseph Tate 2004-02-13 22:13:07 Re: pg_restore problems and suggested resolution