Re: using DROP in a transaction

From: Chris <dmagick(at)gmail(dot)com>
To: Willy-Bas Loos <willybas(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: using DROP in a transaction
Date: 2008-02-17 22:57:16
Message-ID: 47B8BBCC.8000707@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Willy-Bas Loos wrote:
> ah, of course.
> the exclusive lock was preventing tty1 to read "test", and when the lock
> was gone, so was the table.
> I get it. Thanks a lot.
>
> But, what about the "ERROR: tuple concurrently updated" ? (in TTY3)

Same thing - tty1 was locking that entry and when it was released, tty3
tried to update it. The error message isn't great but both tty1 (which
did drop the table) and tty3 which tried to drop the table are doing the
same thing.

> What should have happened, i guess, is "ERROR: table "test" does not
> exist, upon " drop table test; --4. ..."
> Which tuple was concurrently updated? A pg_catalog entry that
> administers the table?

No idea - I guess something like that :)

--
Postgresql & php tutorials
http://www.designmagick.com/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Douglas McNaught 2008-02-17 23:09:08 Re: DB design: How to store object properties?
Previous Message Maxim Khitrov 2008-02-17 21:51:05 DB design: How to store object properties?