X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 43FECD1B4E5 for ; Thu, 9 Oct 2003 03:06:13 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 07708-04 for ; Thu, 9 Oct 2003 00:05:24 -0300 (ADT) Received: from cm-lcon2-53-101.cm.vtr.net (CM-lcon2-53-101.cm.vtr.net [200.83.53.101]) by svr1.postgresql.org (Postfix) with ESMTP id 3EFE0D1B516 for ; Thu, 9 Oct 2003 00:05:24 -0300 (ADT) Received: by cm-lcon2-53-101.cm.vtr.net (Postfix, from userid 500) id C2B1F80238; Wed, 8 Oct 2003 23:05:18 -0400 (CLT) Date: Wed, 8 Oct 2003 23:05:18 -0400 From: Alvaro Herrera To: nolan@celery.tssi.com Cc: Shridhar Daithankar , pgsql-general@postgresql.org Subject: Re: Humor me: Postgresql vs. MySql (esp. licensing) Message-ID: <20031009030518.GD8265@dcc.uchile.cl> References: <20031009005945.GC7219@dcc.uchile.cl> <20031009024305.9090.qmail@celery.tssi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20031009024305.9090.qmail@celery.tssi.com> User-Agent: Mutt/1.4i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/370 X-Sequence-Number: 50443 On Wed, Oct 08, 2003 at 09:43:04PM -0500, nolan@celery.tssi.com wrote: > > If an open transaction is not explicitly committed and the client > > disconnects, it is automatically rolled back. > > So what would happen with MySQL? Does it leave the transaction > half-committed? The original implication was that data was lost, which > is what would happen with an uncommitted PG transaction as well. It was not clear to me from the article that originally mentioned it that it had an uncommitted transaction, though it may very well be the case. But given that ROLLBACK takes some unreasonable amount of time in MySQL, what do you really expect? Did the rollback work when the poweroff was requested? Or did it work only halfway, rendering the whole "transaction" model useless? A "halfway rollback" would be one of the most stupid things I've heard about. -- Alvaro Herrera () "El número de instalaciones de UNIX se ha elevado a 10, y se espera que este número aumente" (UPM, 1972)