Re: ROLLBACK of DROP TABLE leaves database in inconsistent state

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ROLLBACK of DROP TABLE leaves database in inconsistent state
Дата
Msg-id 12238.957651679@sss.pgh.pa.us
обсуждение исходный текст
Ответ на ROLLBACK of DROP TABLE leaves database in inconsistent state  ("Oliver Elphick" <olly@lfix.co.uk>)
Список pgsql-hackers
This is news?

> junk=# drop table aaa;
> NOTICE:  Caution: DROP TABLE cannot be rolled back, so don't abort now
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> DROP
> junk=# rollback;
> ROLLBACK

What did you think the NOTICE was trying to tell you?  (I wanted to
make it a hard ERROR, but was shot down.)

This will be fixed eventually, but until something is done to decouple
filenames from relation names it can't be fixed properly.  Consider
BEGIN; DROP TABLE foo; CREATE TABLE foo ...; ABORT.  There are plans
in the pipeline to do that, and we'll fix it when that happens.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: You're on SecurityFocus.com for the cleartext passwords.
Следующее
От: "Hiroshi Inoue"
Дата:
Сообщение: RE: pg_group_name_index corrupt?