Re: Table corruption on drop

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Table corruption on drop
Дата
Msg-id 2153.978393375@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Table corruption on drop  ("Robert A. Weiler" <rweiler@perfectsense.com>)
Список pgsql-bugs
"Robert A. Weiler" <rweiler@perfectsense.com> writes:
> [rotweiler@pss5 schema]$ psql < postgresql.sql
> NOTICE:  CREATE TABLE/PRIMARY KEY will create implicit index 'domain_pkey' for table 'domain'
> NOTICE:  mdopen: couldn't open unique_id: No such file or directory
> NOTICE:  RelationIdBuildRelation: smgropen(unique_id): No such file or directory
> NOTICE:  mdopen: couldn't open unique_id: No such file or directory
> ERROR:  Relation 'domain' does not exist

Hmm.  This looks suspiciously like the sort of problems that arise if
you try to roll back a DROP TABLE, ie,

    begin;
    drop table foo;
    abort;

which leaves the catalog rows for 'foo' still valid, but the physical
file for it has already been deleted.

The script you show doesn't seem to do that, but I wonder whether it's
not related somehow.

This class of problems is (at long last) fixed for 7.1, but in prior
releases all we can say is "don't do that" :-(

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: update and tcl/tk
Следующее
От: "Travis W. Pouarz"
Дата:
Сообщение: Re: AIX 4.3.1, 7.0.3 build annoyances: C++ comments, make all, macro problem