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 5AF78D1B527 for ; Thu, 9 Oct 2003 06:43:24 +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 49039-05 for ; Thu, 9 Oct 2003 03:42:35 -0300 (ADT) Received: from smtp.pspl.co.in (www.pspl.co.in [202.54.11.65]) by svr1.postgresql.org (Postfix) with ESMTP id AD1B6D1B51E for ; Thu, 9 Oct 2003 03:42:31 -0300 (ADT) Received: (from root@localhost) by smtp.pspl.co.in (8.12.9/8.12.9) id h996lSSX011898 for ; Thu, 9 Oct 2003 12:17:28 +0530 Received: from persistent.co.in (daithan.intranet.pspl.co.in [192.168.7.161]) (authenticated bits=0) by persistent.co.in (8.12.9/8.12.9) with ESMTP id h996lQNs011856; Thu, 9 Oct 2003 12:17:27 +0530 Message-ID: <3F850350.9010601@persistent.co.in> Date: Thu, 09 Oct 2003 12:12:24 +0530 From: Shridhar Daithankar Organization: Persistent Systems Pvt. Ltd. User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b) Gecko/20030917 Thunderbird/0.3a X-Accept-Language: en-us, en MIME-Version: 1.0 To: nolan@celery.tssi.com Cc: pgsql-general@postgresql.org Subject: Re: Humor me: Postgresql vs. MySql (esp. licensing) References: <20031009000319.6397.qmail@celery.tssi.com> In-Reply-To: <20031009000319.6397.qmail@celery.tssi.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/375 X-Sequence-Number: 50448 nolan@celery.tssi.com wrote: >>One of my friend lost data with mysql yesterday.. The machine was taken down for >>disk upgrade and mysql apperantly did not commit the last insert.. OK he was >>using myisam but still..:-) > > > It sounds like that is more a problem with improper operating protocols > than with the underlying database. No. Problem is machine was shutdown with shutdown -h. It sends sigterm to everybody. A good process would flsuh the buffers to disk before finishing. Mysql didn't on that occasion. Transactions or not, this behaviour is unacceptable for any serious app. > > Would PG know enough to do a commit regardless of how the database was > shut down? A second question is whether doing a commit is what the user > or application would always want to have happen, as it could result in a > half-completed transaction. Do a shutdown -h on a live database machine with pg. It will gracefully shut itself down. Shridhar