BUG #3833: Index remains when table is dropped

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема BUG #3833: Index remains when table is dropped
Дата
Msg-id 200712211128.lBLBSnCJ014986@wwwmaster.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #3833: Index remains when table is dropped  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-bugs
The following bug has been logged online:

Bug reference:      3833
Logged by:          Laurenz Albe
Email address:      laurenz.albe@wien.gv.at
PostgreSQL version: 8.2.5
Operating system:   RedHat Enterprise Linux 3
Description:        Index remains when table is dropped
Details:

Two concurrent sessions perform statements against one database. The
sessions are named s1 and s2 in this example.

s1=> CREATE TABLE x(i integer);

s2=> BEGIN;
s2=> CREATE UNIQUE INDEX x_pkey ON x(i);

s1=> DROP TABLE x;
(Session hangs)

s2=> COMMIT;

Now Session s1 will unblock and succeed in dropping the table. The index,
however, remains in pg_class, pg_depend, and pg_index.

"DROP INDEX x_pkey" will lead to an error like this:
ERROR:  could not open relation with OID 65615
The OID here is the one of the dropped table.

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: BUG #3821: Wrong language at "Installation Notes"
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: BUG #3833: Index remains when table is dropped