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-12 22:01:47
Message-ID: 8d9c3e20.0402121401.18a85749@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Oh, yea, that would be bad. So you want to invalidate the entire
> session on any error? That could be done.
>
> --
> Bruce Momjian | http://candle.pha.pa.us
> pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001

Well, that's exactly the current behaviour, which creates certain
problems during interactive or programatic operation. Tom Lane,
described an excellent compromise to the problem, using "nested
transactions". libpg should be configurable to automatically start a
nested transaction for each statement within a transaction allowing
the outer transaction to continue in case of error. The error would
be communicated to the client in the normal manner.

This would not be the default since existing applications rely on the
entire transaction aborting.

-ESR-

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2004-02-12 22:56:00 Re: Transaction aborts on syntax error.
Previous Message ow 2004-02-12 21:49:23 Re: 7.4 - FK constraint performance