X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 2618AD1C47A for ; Mon, 11 Aug 2003 21:26:14 +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 37970-08 for ; Mon, 11 Aug 2003 18:24:39 -0300 (ADT) Received: from a.smtp-out.sonic.net (a.smtp-out.sonic.net [208.201.224.38]) by svr1.postgresql.org (Postfix) with SMTP id EC472D1C4DF for ; Mon, 11 Aug 2003 18:25:56 -0300 (ADT) Received: (qmail 18082 invoked from network); 11 Aug 2003 21:25:58 -0000 Received: from ultra.sonic.net (208.201.224.22) by a.smtp-out.sonic.net with SMTP; 11 Aug 2003 21:25:58 -0000 Received: from thune.mrc-home.org (adsl-209-204-178-126.sonic.net [209.204.178.126]) by ultra.sonic.net (8.11.6p2/8.8.5) with ESMTP id h7BLPPM05272 for ; Mon, 11 Aug 2003 14:25:25 -0700 X-envelope-info: Received: by thune.mrc-home.org (8.11.4) id h7BLPvp01226; Mon, 11 Aug 2003 14:25:57 -0700 Newsgroups: local.ml.postgresql.admin From: dalgoda@ix.netcom.com (Mike Castle) Subject: Re: Backup routine References: <200308110313.h7B3DCv06482@candle.pha.pa.us> Organization: House of Linux X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Path: not-for-mail Originator: nexus@thune.mrc.org (Mike Castle) Date: Mon, 11 Aug 2003 14:25:57 -0700 Message-ID: <58el01x9nv.ln2@thune.mrc-home.org> To: pgsql-admin@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/141 X-Sequence-Number: 9863 In article <200308110313.h7B3DCv06482@candle.pha.pa.us>, Bruce Momjian 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