X-Original-To: pgsql-patches-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 99B8ED1B26C for ; Mon, 19 Jul 2004 01:54:22 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 31989-10 for ; Mon, 19 Jul 2004 04:54:18 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 9FCFCD1B232 for ; Mon, 19 Jul 2004 01:54:17 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i6J4sDIj008887; Mon, 19 Jul 2004 00:54:13 -0400 (EDT) To: Bruce Momjian Cc: Simon Riggs , pgsql-patches@postgresql.org Subject: Re: [HACKERS] Point in Time Recovery In-reply-to: <200407190314.i6J3EAJ07392@candle.pha.pa.us> References: <200407190314.i6J3EAJ07392@candle.pha.pa.us> Comments: In-reply-to Bruce Momjian message dated "Sun, 18 Jul 2004 23:14:10 -0400" Date: Mon, 19 Jul 2004 00:54:13 -0400 Message-ID: <8886.1090212853@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/300 X-Sequence-Number: 11970 Bruce Momjian writes: > What is the process of logging to tape? Ideally we could just do 'dd' > to the tape drive in append mode; however we need a way of signalling > that we want to change tapes. The reason we use a user-specifiable shell command for archiving is so that we do not have to answer the above ;-). It's the user's problem to write a shell script that does things the way he wants. He can make it connect to /dev/tty and ask the operator to swap tapes, or whatever. Personally I am very accustomed to Hewlett-Packard's disk-to-tape backup program "fbackup", which allows you to provide a shell script to handle exactly this sort of thing, and it's worked well for me for many years. > I am asking to make sure we don't need a PITR pause mode that prevents > WAL files from being archived but also prevents them from being > recycled. WAL files will not be recycled until the archiver daemon has set a .done flag file for them, so I see no problem here. (Note: I took out some code in Simon's original patch that would start bleating on the basis of totally unsupportable assumptions about long archival of a log segment "ought to" take.) regards, tom lane