Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UPESs-0004FM-Gv for pgsql-bugs@arkaria.postgresql.org; Mon, 08 Apr 2013 15:58:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UPESs-00030i-0m for pgsql-bugs@arkaria.postgresql.org; Mon, 08 Apr 2013 15:58:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UPESr-00030d-Dt for pgsql-bugs@postgresql.org; Mon, 08 Apr 2013 15:58:37 +0000 Received: from mail-ia0-x229.google.com ([2607:f8b0:4001:c02::229]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UPESm-0003K0-Ln for pgsql-bugs@postgresql.org; Mon, 08 Apr 2013 15:58:36 +0000 Received: by mail-ia0-f169.google.com with SMTP id y26so1268175iab.0 for ; Mon, 08 Apr 2013 08:58:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :cc:content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=Ug8/QHWzp4jE2z9s9kbvCMXvz7bp5nKQAK83FLTu2CM=; b=RNvLlANCvfIkJ0BELAfl5dLGDOfYVYwVUpIhBlNQ9ZfEHOpbReZpn98dFAtyxBUeEp YnNtvY5IamA2pWGRDw7mYw+U3X4uAv08AJVFyd0jDOxKZuErWAv9JF5+LBzCkord3FNP mSNU3ecAtM9LiIPo6XtV8/5wYt3QyEFvwxsXZ6neW112B1fmypyeHYVhV7+juZ5lYTVR LPO6QSzJQXRtfZTLC5Xr7OYplDZHoO5ozLBwBBD1THlapNdgJM1mjzx5iwy6CakkGvOf MOOZ2u4P0wHyzlWNAAOIPZGRPvYeQvaDEak0TNUg1+4/LSiP/E/u83UnmZQcqFY3gikI slUg== X-Received: by 10.42.192.12 with SMTP id do12mr12321633icb.53.1365436710974; Mon, 08 Apr 2013 08:58:30 -0700 (PDT) Received: from [192.168.1.175] (173-164-56-105-colorado.hfc.comcastbusiness.net. [173.164.56.105]) by mx.google.com with ESMTPS id qs4sm19934508igb.10.2013.04.08.08.58.29 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 08 Apr 2013 08:58:30 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: BUG #8043: 9.2.4 doesn't open WAL files from archive, only looks in pg_xlog From: Jeff Bohmer In-Reply-To: Date: Mon, 8 Apr 2013 09:58:37 -0600 Cc: Heikki Linnakangas , Pg Bugs , pgsql-hackers Content-Transfer-Encoding: quoted-printable Message-Id: References: <515FDBBF.8040207@vmware.com> To: Jeff Janes X-Mailer: Apple Mail (2.1503) X-Gm-Message-State: ALoCoQkRnlRndCA1fiM/Etud7uftwwFF1i7BGHg+PVHcG6FImzE3jGoEclKpwWgblFdf/1d8rhWO X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Apr 6, 2013, at 1:24 PM, Jeff Janes wrote: > On Sat, Apr 6, 2013 at 1:24 AM, Heikki Linnakangas > wrote: >=20 >>=20 >> Incidentally, I bumped into another custom backup script just a few weeks >> back that also excluded backup_label. I don't know what the author was >> thinking when he wrote that, but it seems to be a surprisingly common >> mistake. Maybe it's the "label" in the filename that makes people think >> it's not important. >=20 >=20 >=20 > I think part of it is the name "label', and part of it is that this file = is > similar to and hence easily confused with the .history files, which (as f= ar > as I know) truly are there only for human information and not for system > operation. While the backup_label file was included in all base backups by the custom = backup script, it was not present in the cluster directory when starting PG= 9.2.4. Because the data directory was synced from the base backup without = backup_label. Sure enough, including backup_label in the data directory fix= es this for me. I think these custom scripts were written around 8.1. That the base backups= have worked all this time (each base backup is tested) is probably because= the backup script, immediately after calling pg_start_backup(), rsyncs pg_= control before rsync'ing everything else in the data directory. Although, i= t seems this quirk allows for problems if WAL files are generated between t= he time pg_start_backup() is called and pg_control is rsync'd. >> Perhaps we should improve the documentation to make it more explicit that >> backup_label must be included in the backup. The docs already say that, >> though, so I suspect that people making this mistake have not read the d= ocs >> very carefully anyway. >>=20 >=20 >=20 > I don't think the docs are very clear on that. They say "This file will = of > course be archived as a part of your backup dump file", but "will be" does > not imply "must be". Elsewhere it emphasizes that the label you gave to > pg_start_backup is written into the file, but doesn't really say what the > file itself is there for. To me it seems to imply that the file is there > for your convenience, to hold that label, and not as a critical part of t= he > system. >=20 > Patch attached, which I hope can be back-patched. I'll also add it to > commitfest-Next. >=20 > Cheers, >=20 > Jeff > I think this documentation update would be helpful. Thank you for your help, - Jeff -- Jeff Bohmer | Corporate Technology Manager | VisionLink, Inc. First National Center | 3101 Iris Avenue, Suite 240 | Boulder CO, 80301 Office 303.402.0170 x121 Other ways to stay in touch - Blog | Twitter | Facebook | LinkedIn | Web This message and any attachments may contain information that is privileged= ,=20 confidential or exempt from disclosure under applicable law or agreement. I= f you=20 have received this message in error, please reply and delete the message an= d=20 any attachments without opening the attachment. Thank you. --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs