X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 8E9819DD58C for ; Tue, 28 Mar 2006 09:46:11 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 51031-03 for ; Tue, 28 Mar 2006 09:46:15 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.184]) by postgresql.org (Postfix) with ESMTP id EBDFF9DD591 for ; Tue, 28 Mar 2006 09:46:08 -0400 (AST) Received: by nproxy.gmail.com with SMTP id k27so1089398nfc for ; Tue, 28 Mar 2006 05:46:13 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:mime-version:content-type; b=ukqTwkjSgdXxVY3o8wZQnX43mlsEFULUe38VvYffPUCAlqdaw1RLl9qEa7AIL9k4CM72AxIQ4YAPXMF+2A1KAGce7k50mTGceawI65vt15+8AtyIlY31xF+LfPBjZBTXj+xp3Fm7b+xR5uMEFLPvVL+FywOkWR7nh5XVrMzfi2s= Received: by 10.49.19.7 with SMTP id w7mr557202nfi; Tue, 28 Mar 2006 05:46:12 -0800 (PST) Received: by 10.49.27.1 with HTTP; Tue, 28 Mar 2006 05:46:12 -0800 (PST) Message-ID: Date: Tue, 28 Mar 2006 19:16:12 +0530 From: "Rajesh Kumar Mallah" To: pgsql-admin@postgresql.org Subject: Setting up of PITR system. Cc: mallah@trade-india.com MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_15461_4605239.1143553572639" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.259 required=5 tests=[AWL=-0.074, HTML_MESSAGE=0.001, RCVD_IN_BL_SPAMCOP_NET=1.332] X-Spam-Score: 1.259 X-Spam-Level: * X-Archive-Number: 200603/305 X-Sequence-Number: 21062 ------=_Part_15461_4605239.1143553572639 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Sorry last posting was accidently sent , incomplete,plese ignore. We are trying to setup PITR system based on documentation http://www.postgresql.org/docs/8.1/interactive/backup-online.html We have 3 questions regarding 1. Selection of archived WAL records that can be safely removed. 2. Knowing the relevant WAL record just after pg_stop_backup() 3. Recommended tool for taking file system level backup. Elaboration: we want to remove archived WAL log files which are no longer needed so that the size of wal_archive folder is under control. The DOCs say that filenames numerically less than the WAL record that pg_stop_backup() suggests can be removed. Will an alphabetical sorting be different from numerically sorted filename ? Sorting numerically is not easy as the filenames look like HE= X numbers ut they are are so huge that they cant be stored in normal integers (32bits). Q2. We are attempting to automate the process of taking base backup and removal of the unneeded WAL files. Is there any reliable way of knowing the WA= L file X from inside the shell script , such that files prior to X can be removed ? from a shell script we issue pg_stop_backup() by psql -c , it returns something which does not looks like a WAL file. Q3. tar exits with non zero status for the same reasons as mentioned in doc= s is there any better archiving tool for this purpose ? can we use cp -= a ? Regds Rajesh Kumar Mallah. ------=_Part_15461_4605239.1143553572639 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi,

Sorry last posting was accidently sent , incomplete,plese ignore.

We are trying to setup PITR system based on documentation
http://www.postgresql.org/docs/8.1/interactive/backup-online.html
We have 3 questions regarding

1. Selection of archived WAL records that can be safely removed.
2. Knowing the relevant WAL record just after pg_stop_backup()
3. Recommended tool for taking file system level backup.

Elaboration:

we want to remove archived WAL log files which are no longer needed
so that the size of wal_archive folder is under control.

The DOCs say that filenames numerically less than the WAL record that pg_st= op_backup()
suggests can be removed. Will an alphabetical sorting be different from num= erically sorted
filename ?    Sorting numerically is not easy as the filenames lo= ok like HEX numbers
ut they are are so huge that they cant be stored in normal integers (32bits= ).


Q2. We are attempting to automate the process of taking base backup and rem= oval
     of the unneeded WAL files. Is there any reliable w= ay of knowing the WAL file X from
     inside the shell script , such that files prior to= X can be removed ?

      from a shell script we issue pg_stop_backup(= ) by psql -c , it returns something
      which does not looks like a WAL file.

Q3. tar exits with non zero status for the same reasons as mentioned in doc= s
      is there any better archiving tool for this = purpose ? can we use cp -a ?


Regds
Rajesh Kumar Mallah.
  
------=_Part_15461_4605239.1143553572639--