BUG #1220: "alter table rename to" inside a transaction violates ACID ordering

From: "PostgreSQL Bugs List" <pgsql-bugs(at)postgresql(dot)org>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #1220: "alter table rename to" inside a transaction violates ACID ordering
Date: 2004-08-17 14:14:09
Message-ID: 20040817141409.F076A5A1045@www.postgresql.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 1220
Logged by: adam sah

Email address: asah(at)midgard(dot)net

PostgreSQL version: 7.4.3

Operating system: linux (suse 9.1 professional)

Description: "alter table rename to" inside a transaction violates
ACID ordering

Details:

to repro, open two psql windows and execute cmds in this order:

in window 1, "create table test (foo integer);"
in window 2, "select count(*) from foo;"
in window 1, "begin transaction;"
in window 2, "select count(*) from foo;"
in window 1, "alter table foo rename to bar;"
in window 2, "select count(*) from foo;"
==> this blocks, like it should
in window 1, "commit;"
==> yikes! in window 2, it should have errored.
instead it succeeded with 0 records (I'm guessing
because the catalog lookup had already occurred?)

anyway, if you try the same thing, but with "drop
table" instead of rename you do get an error in the
query window.

btw, you guys rock! 8.0 looks awesome.

hope this helps,
adam

(former UC Berkeley grad student in stonebraker's
database group)

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message J. Hondius 2004-08-17 14:53:47 Re: Sequence problem in stresstest on 8.0-beta1 (windows)
Previous Message Fabien COELHO 2004-08-17 12:26:35 Re: [BUGS] BUG #1219: pgxs does not work fully