Re: transaction error handling - Mailing list pgsql-admin

From Walter Hurry
Subject Re: transaction error handling
Date
Msg-id jb3ggv$2ne$1@dough.gmane.org
Whole thread Raw
In response to Repeatable crash in pg_dump (with -d2 info)  (David Schnur <dnschnur@gmail.com>)
Responses Re: transaction error handling
List pgsql-admin
On Tue, 29 Nov 2011 09:57:24 -0800, Kasia Tuszynska wrote:

> Hi Everybody,
>
> This is an architectural question.
> I am testing on Postgres 9.0.2 on windows and linux(suse, rhel, ubuntu)
>
> I want to make sure that I have the correct understanding of the
> Postgres architecture and would like to enquire if there are any plans
> to change it.
>
> Comparing Oracle and Postgres from the perspective of error handling on
> the transaction level I observed the following:
>
> Oracle:
> Begin transaction Insert - no error Implicit savepoint Insert - error
> raised Implicit rollback to the savepoint, no transaction loss, error
> raised on the insert statement that errored out.
> End transaction, implicit commit, with the single error free insert.
>
> Postgres:
> Begin transaction Insert - no error Insert - error raised Transaction
> loss = no implicit rollback to the single error free insert.
>
> Is this a correct interpretation of the Postgres transaction error
> handling?
> If so, are there any changes being considered, or perhaps already
> implemented?

I suspect you may be barking up the wrong tree. Comparing default
behaviour of PSQL to SQL*Plus is not the same thing as comparing
PostgreSQL to Oracle.


pgsql-admin by date:

Previous
From: Steve Crawford
Date:
Subject: Re: Use a custom postgresql.conf?
Next
From: Kasia Tuszynska
Date:
Subject: Re: transaction error handling