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

From Philip Warner
Subject Re: [HACKERS] DROP TABLE inside transaction block
Date
Msg-id 3.0.5.32.19990907131924.00b89d10@mail.rhyme.com.au
Whole thread Raw
In response to Re: [HACKERS] DROP TABLE inside transaction block  (Bruce Momjian <maillist@candle.pha.pa.us>)
List pgsql-hackers
>> 
>> Oracle auto-commits current in-progress transaction before
>> execution of any DDL statement and executes such statements in
>> separate transaction. 
>
>That's cheating!
>

Dec (Oracle) Rdb cheats by locking a tables meta-data as soon as any user
accesses it, so that 'alter/drop table' will not run while that user is
attached. But is does support meta-data changes inside transactions
(assuming no-else who is currently connected has ever read that particular
meta-data). It is nice being able to rollback 'alter table' statements,
even under these strong restrictions.


----------------------------------------------------------------
Philip Warner                    |     __---_____
Albatross Consulting Pty. Ltd.   |----/       -  \
(A.C.N. 008 659 498)             |          /(@)   ______---_
Tel: +61-03-5367 7422            |                 _________  \
Fax: +61-03-5367 7430            |                 ___________ |
Http://www.rhyme.com.au          |                /           \|                                |    --________--
PGP key available upon request,  |  /
and from pgp5.ai.mit.edu:11371   |/


pgsql-hackers by date:

Previous
From: Vadim Mikheev
Date:
Subject: Re: [HACKERS] DROP TABLE inside transaction block
Next
From: "flo"
Date:
Subject: Re: [HACKERS] temp table oddness?