agora inbox for postgres@postgres.berkeley.edu
help / color / mirror / Atom feedFrom: Paul M. Aoki <aoki@CS.Berkeley.EDU>
To: Niranjan Perera <perera@pollux.cs.uga.edu>
Cc: postgres@postgres.Berkeley.EDU
Subject: Re: How does POSTGRES handle crash recovery ?
Date: Thu, 09 Jun 94 15:43:49 -0700
Message-ID: <199406092243.PAA18870@faerie.CS.Berkeley.EDU> (raw)
> I would like to know how POSTGRES handles "crash recovery".
somebody else writes in private email:
Consult the $POSTGRESDIR/doc/papers directory for a paper on the
novel implementation of crash recovery in a PG database.
Basicly, there is no WAL (Write Ahead Log) and no undo or redo
recovery. Each write is a distinct tuple in the relation, and
the oid keeps track of updates. Selects can then be 'time restricted'
because the entire history of the relation is stored in the
relation. Several relations; pg_log, pg_time etc, maintain logs
of open transactions. If the machine crashes, you simply start it
up again. Any uncommited transactions are not noted in the log
and hence simply aren't there, so far as PG is concerned.
This gives you, effectively, instant re-start.
This is gone into in mush more detail in the docs noted above . . .
one plus of the postgres storage manager is the "instant crash
recovery." one minus is that it does not address media failure (e.g.,
bad sectors). the stock answer to the media failure problem is to
throw hardware at it (e.g., use raid -- mirrored files, ecc,
whatever). frequent (offline) backups are recommended in the new
documentation. ("backup frequently" is always safe DBA advice, i
suppose..)
--
Paul M. Aoki | CS Div., Dept. of EECS, UCB | aoki@CS.Berkeley.EDU
| Berkeley, CA 94720 | ...!uunet!ucbvax!aoki
==============================================================================
To add/remove yourself to/from the POSTGRES mailing list: send mail with
the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU"
If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
a human will deal with it. DO NOT post to the "postgres" mailing list.
==============================================================================
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 using the --to and --cc options:
reply via email
To: postgres@postgres.berkeley.edu
Cc: aoki@CS.Berkeley.EDU, perera@pollux.cs.uga.edu
Subject: Re: How does POSTGRES handle crash recovery ?
In-Reply-To: <199406092243.PAA18870@faerie.CS.Berkeley.EDU>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox