pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Shridhar Daithankar <shridhar_daithankar@persistent.co.in>
To: nolan@celery.tssi.com
Cc: pgsql-general@postgresql.org
Subject: Re: Humor me: Postgresql vs. MySql (esp. licensing)
Date: Thu, 09 Oct 2003 12:12:24 +0530
Message-ID: <3F850350.9010601@persistent.co.in> (raw)
In-Reply-To: <20031009000319.6397.qmail@celery.tssi.com>
References: <20031009000319.6397.qmail@celery.tssi.com>

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




view thread (111+ messages)  latest in thread

Message-ID: <3F850350.9010601@persistent.co.in>
Permalink:  ../3F850350.9010601@persistent.co.in/
Also on:    postgresql.org/message-id/3F850350.9010601@persistent.co.in

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: shridhar_daithankar@persistent.co.in, nolan@celery.tssi.com
  Subject: Re: Humor me: Postgresql vs. MySql (esp. licensing)
  In-Reply-To: <3F850350.9010601@persistent.co.in>
  References: <20031009000319.6397.qmail@celery.tssi.com> <3F850350.9010601@persistent.co.in>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox