Re: NT and aborted transaction

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Gaetano Mendola <mendola(at)bigfoot(dot)com>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: NT and aborted transaction
Date: 2004-07-18 03:06:07
Message-ID: 20040718030607.GB24785@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, Jul 18, 2004 at 01:07:32AM +0200, Gaetano Mendola wrote:

> kalman=# begin;
> BEGIN
> kalman=# select * from a;
> ERROR: relation "a" does not exist
> kalman=# begin;
> BEGIN
> kalman=# select * from test;
> ERROR: current transaction is aborted, commands ignored until end of
> transaction block
>
> I think the second begin shall fail instead of open an already invalid
> transaction.

We are not gonna use "begin" for starting a subtransaction, so this is a
nonissue. Please apply the savepoints patch and try again.

If you have current CVS tip you'll have for me to post a new patch, in
the next hour or so, because the code has drifted.

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Ellos andaban todos desnudos como su madre los parió, y también las mujeres,
aunque no vi más que una, harto moza, y todos los que yo vi eran todos
mancebos, que ninguno vi de edad de más de XXX años" (Cristóbal Colón)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-07-18 05:04:43 Re: [HACKERS] Point in Time Recovery
Previous Message Alvaro Herrera 2004-07-18 03:04:25 Re: NT + deadlock intended behaviour ?