Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id A7682632A01 for ; Thu, 15 Apr 2010 18:33:46 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 59890-04 for ; Thu, 15 Apr 2010 21:33:29 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-iw0-f187.google.com (mail-iw0-f187.google.com [209.85.223.187]) by mail.postgresql.org (Postfix) with ESMTP id 8E862632898 for ; Thu, 15 Apr 2010 18:33:33 -0300 (ADT) Received: by iwn17 with SMTP id 17so840548iwn.19 for ; Thu, 15 Apr 2010 14:33:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:received :message-id:subject:to:content-type; bh=utqnixxjM9n90cXPjkbZG/kQmEAOkKlicuoVkuKs9DA=; b=f9ZMsiG0Oxb6v/T+EiATNKbPF8Tsy5XiyfEEq4QrNIaStoCqoq8ORwkdHN8YdKfq+y AfuTA9yCWwqIA394dBICUKRg7J267jnwtvAzY2twpJmKYqXi1ZcU4vNZMPD4cROj7xCL dDOGbK8s51n2tsI6ZIH0O7uQz53XW8dimGegU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=aUMyGdxVTwnFJSKufg3KiLGs/EQcbu08mR0xcgffQajCBAKWFtNGq5xE/e4gwwZlFG TTNlbsv/+/miGanUUhCKkMqt4JqlNdQI75bChMkIYQNXUoZCFiAyF8BXizIBIcuCCYqS cJ95EMqcEsOLxk6kkkLKuj/QfgRacWXiET5oI= MIME-Version: 1.0 Received: by 10.231.182.72 with HTTP; Thu, 15 Apr 2010 14:33:12 -0700 (PDT) From: Frederiko Costa Date: Thu, 15 Apr 2010 14:33:12 -0700 Received: by 10.231.156.65 with SMTP id v1mr254271ibw.67.1271367212125; Thu, 15 Apr 2010 14:33:32 -0700 (PDT) Message-ID: Subject: Wal Segment files Backup Strategy for archiving To: pgsql-admin@postgresql.org Content-Type: multipart/alternative; boundary=001636c933da0ed01004844d3ff8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-10 required=5 tests=BAYES_00=-1.9, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201004/202 X-Sequence-Number: 34296 --001636c933da0ed01004844d3ff8 Content-Type: text/plain; charset=UTF-8 Hello folks, I wanted to use the archiving feature, with log shipping / warm-standby server. No problem on setting up so far. However, reading the documentation brought me one question that I'd like to share with the list. In the documentation, as far as I understood, it's said you need to make a base backup and copy the data cluster area to the destination you choose. Use pg_start_backup(), copy the data/ directory (or the cluster area), and pg_stop_backup(). It created the first checkpoint (correct?) and copied the wal segments to the area you specified. You can even delete the files under pg_xlog, because you will rely on the ones shipped out. The question is: once the base backup has been made and I change any setting on this primary server, on postgresql.conf for example, would I have to redo the procedure and set Pgsql to backup mode if I want to apply these changes I made updated on standby server or it's just a matter of transferring the file to the standby server? Thanks, Frederiko Costa --001636c933da0ed01004844d3ff8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello folks,

I wanted to use the archiving feature, with log shippin= g / warm-standby server. No problem on setting up so far. However, reading = the documentation brought me one question that I'd like to share with t= he list.

In the documentation, as far as I understood, it's said you need to= make a base backup and copy the data cluster area to the destination you c= hoose. Use pg_start_backup(), copy the data/ directory (or the cluster area= ), and pg_stop_backup(). It created the first checkpoint (correct?) and cop= ied the wal segments to the area you specified. You can even delete the fil= es under pg_xlog, because you will rely on the ones shipped out. The questi= on is: once the base backup has been made and I change any setting on this = primary server, on postgresql.conf for example, would I have to redo the pr= ocedure and set Pgsql to backup mode if I want to apply these changes I mad= e updated on standby server or it's just a matter of transferring the f= ile to the standby server?

Thanks,
Frederiko Costa

--001636c933da0ed01004844d3ff8--