Skip site navigation (1) Skip section navigation (2)

Re: A 2 phase commit weirdness

From: Alvaro Herrera <alvherre(at)surnet(dot)cl>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>,Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: A 2 phase commit weirdness
Date: 2005-05-31 14:57:55
Message-ID: 20050531145755.GB6348@surnet.cl (view raw or flat)
Thread:
Lists: pgsql-hackers
On Tue, May 31, 2005 at 10:44:58AM -0400, Tom Lane wrote:
> Alvaro Herrera <alvherre(at)surnet(dot)cl> writes:
> > No, the ERROR is in a completely unrelated transaction.  The scenario
> > again is this:
> 
> > CREATE TABLE foo ();
> 
> > BEGIN;
> > DROP TABLE foo;
> > PREPARE TRANSACTION 'foo';
> 
> 
> > 				SELECT * FROM foo;
> > 				-- hangs
> > COMMIT TRANSACTION 'foo';
> > 				ERROR, relation deleted while still in
> > 				use
> 
> Oh.  Well, you get that now without any use of PREPARE; it's not clear
> what else we could do, except possibly make the message a bit more
> user-friendly.

Ah, you are right, sorry :-)  I was imagining I had to cope with that
but evidently not.

-- 
Alvaro Herrera (<alvherre[a]surnet.cl>)
"Granting software the freedom to evolve guarantees only different results,
not better ones." (Zygo Blaxell)

In response to

pgsql-hackers by date

Next:From: Компьютерная компания реализуетDate: 2005-05-31 15:02:25
Subject: Ноутбуки б/у из США от 300 $ с гарантией в Москве (новые поступления)
Previous:From: Bruce MomjianDate: 2005-05-31 14:54:25
Subject: Re: Backslash handling in strings

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group