pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Rusty Wright <rusty@socrates.Berkeley.EDU>
Cc: tgl@sss.pgh.pa.us
Cc: pgsql-admin@postgresql.org
Subject: Re: newbie qs; fixing and checking databases
Date: Wed, 16 Oct 2002 15:53:35 -0400 (EDT)
Message-ID: <200210161953.g9GJrZK27717@candle.pha.pa.us> (raw)
In-Reply-To: <200210161936.g9GJaHQ03777@socrates.Berkeley.EDU>

Rusty Wright wrote:
> It seems to me that if the machine crashes in the middle of a
> transaction that there will be or is a very high chance of database
> corruption.  I don't know if and how postgresql would detect and
> handle that after the system reboots.  We are running mysql here and
> haven't had any data integrity problems.

No chance of corruption.  On restart, the WAL file will bring the system
back to the state before the transaction started.  In fact, the WAL
doesn't even have to be used because the transaction isn't marked as
completed yet.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



view thread (12+ messages)  latest in thread

Message-ID: <200210161953.g9GJrZK27717@candle.pha.pa.us>
Permalink:  ../200210161953.g9GJrZK27717@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200210161953.g9GJrZK27717@candle.pha.pa.us

 · 

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-admin@postgresql.org
  Cc: pgman@candle.pha.pa.us, rusty@socrates.Berkeley.EDU, tgl@sss.pgh.pa.us
  Subject: Re: newbie qs; fixing and checking databases
  In-Reply-To: <200210161953.g9GJrZK27717@candle.pha.pa.us>
  References: <200210161936.g9GJaHQ03777@socrates.Berkeley.EDU> <200210161953.g9GJrZK27717@candle.pha.pa.us>

* 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