Re: [HACKERS] DROP TABLE inside transaction block - Mailing list pgsql-hackers

From Michael Simms
Subject Re: [HACKERS] DROP TABLE inside transaction block
Date
Msg-id 199909052247.XAA07187@argh.demon.co.uk
Whole thread Raw
In response to DROP TABLE inside transaction block  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [HACKERS] DROP TABLE inside transaction block  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> (Of course, what would be really nice is if it just worked, but I don't
> see any way to make that happen without major changes.  Simply
> postponing the unlink to end of transaction isn't workable; consider
> BEGIN; DROP TABLE foo; CREATE TABLE foo; ...)

Cant you just rename to a unique name, maybee in another directory,
suchas:

~pgsql/data/base/template1/sometable

moves to

~pgsql/data/base/template1/pg_removals/postmasterpid/sometable

And if there is an abort, move back, if there is an end, delete it.

Possible?
                Michael Simms


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: DROP TABLE inside transaction block
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] DROP TABLE inside transaction block