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

From Hannu Krosing
Subject Re: [HACKERS] DROP TABLE inside transaction block
Date
Msg-id 37D40800.D3E07EE1@tm.ee
Whole thread Raw
In response to Re: [HACKERS] DROP TABLE inside transaction block  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Leon wrote:
> 
> Tom Lane wrote:
> 
> >
> > In short, a lot of work for a very marginal feature.  How many other
> > DBMSes permit DROP TABLE to be rolled back?  How many users care?
> >
> 
> Don't know. But here is the idea: drop table rollback is needed in
> automation of DB restructuring.

Actually the underlying mechanics could be used for other things too,
like:

ALTER TABLE DROP COLUMN colname, or even changing the type of column,
say 
from int4 -> int8 -> float -> char -> varchar -> text ?

I know that Oracle at least allows the latter but I'm not sure how 
it does that

-------------
Hannu


pgsql-hackers by date:

Previous
From: Hannu Krosing
Date:
Subject: Troubles from using pg_dumpall with dbname
Next
From: Yu Cao
Date:
Subject: Re: [HACKERS] PostgreSQL 6.5.1: libpq++ libraries on IRIX 6.5