Re: [HACKERS] DROP TABLE inside transaction block

From: Michael Simms <grim(at)argh(dot)demon(dot)co(dot)uk>
To: tgl(at)sss(dot)pgh(dot)pa(dot)us (Tom Lane)
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] DROP TABLE inside transaction block
Date: 1999-09-05 22:47:37
Message-ID: 199909052247.XAA07187@argh.demon.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 1999-09-05 22:54:08 Re: [HACKERS] DROP TABLE inside transaction block
Previous Message Tom Lane 1999-09-05 22:17:55 DROP TABLE inside transaction block