Problem with drop table within a transaction

Поиск
Список
Период
Сортировка
От Gabriel Fernandez
Тема Problem with drop table within a transaction
Дата
Msg-id 39B37A21.997190AF@unica.edu
обсуждение исходный текст
Список pgsql-general
Hi,

I have a problem when doing drop table within a transaction:

It seems that if you execute a drop table sentence but after the
transaction is aborted because an error occurs, the result is a
corruption of the database: the drop table sentence deletes the physical
files corresponding to the table, but as transaction is aborted the
table is not deleted from the database definition.

So then you cannot recreate the table (baclkend says it alredy exists),
you cannot drop the table (it says it doesn't find the physical file),
etc.

(Anyway, it is not very critical : i'm not droping table each hour and i
can do it in its own atomic transaction).

Beyond that i would want to know if there is available information about
the database definiton in postgresql: where the table is defined, how to
'fix' manually some problems (for instance, the one i have explained
above).

Thanks.

Gabi :-)



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

Предыдущее
От: fabrizio.ermini@sysdat.it
Дата:
Сообщение: Instability in copying large quantities of data
Следующее
От: Martin Neimeier
Дата:
Сообщение: Re: How can I kow my permissions?