X-Original-To: pgsql-general-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id B7C8B9FA6A2 for ; Fri, 30 Jun 2006 19:04:12 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 18668-05 for ; Fri, 30 Jun 2006 19:04:06 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id 9FB3F9FA6B1 for ; Fri, 30 Jun 2006 19:04:06 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 2F48230BA9; Sat, 1 Jul 2006 00:04:05 +0200 (MET DST) From: Chris Browne X-Newsgroups: pgsql.general Subject: Re: Notes on converting from MySQL 5.0.x to PostgreSQL Date: Fri, 30 Jun 2006 17:35:30 -0400 Organization: cbbrowne Computing Inc Lines: 28 Message-ID: <60odwauy1p.fsf@dba2.int.libertyrms.com> References: <1151680333.13129.55.camel@state.g2switchworks.com> <44A5418F.8040901@cox.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@news.hub.org User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.19 (linux) Cancel-Lock: sha1:Wv6xPu5rN5mbb4EiVh3NkGKb5x8= To: pgsql-general@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/1244 X-Sequence-Number: 97616 ron.l.johnson@cox.net (Ron Johnson) writes: > Scott Marlowe wrote: > [snip] >> However, the more interesting thing here, is that every >> statement, including DDL is transactable, except for a couple of >> big odd ones, like create database. So, in postgresql, you can do: >> >> begin; >> create table xyz... >> alter table abc... >> insert into abc select * from iii >> update iii...; >> drop table iii; >> (oops, I messed up something) >> rollback; > > But isn't that what it means to be "transactional"? Or am I spoiled > by my "big, expensive enterprise database"? DDL commonly hasn't been "able to be rolled back," even in "big, expensive" databases... -- (format nil "~S@~S" "cbbrowne" "cbbrowne.com") http://www.ntlug.org/~cbbrowne/unix.html Rules of the Evil Overlord #180. "If I ever build a device to transfer the hero's energy into me, I will make sure it cannot operate in reverse."