Re: Transactional DDL

Поиск
Список
Период
Сортировка
От Greg Williamson
Тема Re: Transactional DDL
Дата
Msg-id 46C2A977.4000108@digitalglobe.com
обсуждение исходный текст
Ответ на Re: Transactional DDL  ("Harpreet Dhaliwal" <harpreet.dhaliwal01@gmail.com>)
Список 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@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@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.)


В списке pgsql-general по дате отправления:

Предыдущее
От: "Sabin Coanda"
Дата:
Сообщение: memory optimization
Следующее
От: Hannes Dorbath
Дата:
Сообщение: Re: Persistent connections in PHP