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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-hackers by date

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