Re: Transactional DDL

From: Greg Williamson <Gregory(dot)Williamson(at)digitalglobe(dot)com>
To: Harpreet Dhaliwal <harpreet(dot)dhaliwal01(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Transactional DDL
Date: 2007-08-15 07:21:27
Message-ID: 46C2A977.4000108@digitalglobe.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Harpreet Dhaliwal wrote:
> And this feature i.e. transactional DDL is not there in other major
> RDBMS like sql server, oracle etc?
>
> thanks
> ~Harpreet
>
<...snipped earlier postings...>

It surprised me when I saw Oracle's behavior. Informix supports DDL
within transactions quite happily:

create table foo22 (id int,myvalue varchar);
create table foo23 (id int);
begin;
alter table foo22 drop (myvalue);
alter table foo23 add (mynewvalue varchar);
rollback;

INFO - foo22: Columns Indexes Privileges References Status ...
Display column names and data types for a table.
----------------------- billing(at)arches_ip ------ Press CTRL-W for Help
--------
Column name Type Nulls
id integer yes
myvalue varchar(1,1) yes

AND
INFO - foo23: Columns Indexes Privileges References Status ...
Display column names and data types for a table.
----------------------- billing(at)arches_ip ------ Press CTRL-W for Help
--------
Column name Type Nulls
id integer yes

QED.

It's a strong point in PostgreSQL's favor that it behaves in what I
regard as a sane manner. That Oracle stuff makes me shudder -- it's unclean.

Greg Williamson
Senior DBA
GlobeXplorer LLC, a DigitalGlobe company

Confidentiality Notice: This e-mail message, including any attachments,
is for the sole use of the intended recipient(s) and may contain
confidential and privileged information and must be protected in
accordance with those provisions. Any unauthorized review, use,
disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply e-mail and destroy all
copies of the original message.

(My corporate masters made me say this.)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Sabin Coanda 2007-08-15 07:21:31 memory optimization
Previous Message Chris 2007-08-15 06:35:10 Re: Transactional DDL