pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: dalgoda@ix.netcom.com
To: pgsql-admin@postgresql.org
Subject: Re: Backup routine
Date: Mon, 11 Aug 2003 14:25:57 -0700
Message-ID: <58el01x9nv.ln2@thune.mrc-home.org> (raw)
References: <m3r83u71ip.fsf@chvatal.cbbrowne.com>
	<200308110313.h7B3DCv06482@candle.pha.pa.us>

In article <200308110313.h7B3DCv06482@candle.pha.pa.us>,
Bruce Momjian  <pgman@candle.pha.pa.us> wrote:
>Also, I assume you have to stop the server just for a moment while you
>do the freeze, right?

It depends on if you need known state or just consistent state.

Taking a snapshot of the system will get you a consistent state just like
if the machine crashed.  You can restore that snapshot, bring PG back up
and everything will work.  Of course, you really have no way of knowing
what transactions were commited and what were not.  

On the other hand, stop the server/snapshot/start the server gives you not
only consistency, but a known state.  That is, you know for sure that
whatever was done before you stopped the server is what was done.

Which approach is necessary for you depends on your needs, I as always.

mrc
-- 
     Mike Castle      dalgoda@ix.netcom.com      www.netcom.com/~dalgoda/
    We are all of us living in the shadow of Manhattan.  -- Watchmen
fatal ("You are in a maze of twisty compiler features, all different"); -- gcc



view thread (16+ messages)  latest in thread

Message-ID: <58el01x9nv.ln2@thune.mrc-home.org>
Permalink:  ../58el01x9nv.ln2@thune.mrc-home.org/
Also on:    postgresql.org/message-id/58el01x9nv.ln2@thune.mrc-home.org

 · 

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: dalgoda@ix.netcom.com
  Subject: Re: Backup routine
  In-Reply-To: <58el01x9nv.ln2@thune.mrc-home.org>
  References: <m3r83u71ip.fsf@chvatal.cbbrowne.com> <200308110313.h7B3DCv06482@candle.pha.pa.us> <58el01x9nv.ln2@thune.mrc-home.org>

* 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