Problem with drop table within a transaction - Mailing list pgsql-general

From Gabriel Fernandez
Subject Problem with drop table within a transaction
Date
Msg-id 39B37A21.997190AF@unica.edu
Whole thread Raw
List 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 by date:

Previous
From: fabrizio.ermini@sysdat.it
Date:
Subject: Instability in copying large quantities of data
Next
From: Martin Neimeier
Date:
Subject: Re: How can I kow my permissions?