Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UPEaK-0004nk-Ht for pgsql-bugs@arkaria.postgresql.org; Mon, 08 Apr 2013 16:06:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UPEaJ-0005vO-US for pgsql-bugs@arkaria.postgresql.org; Mon, 08 Apr 2013 16:06:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UPEaI-0005ud-Pq for pgsql-bugs@postgresql.org; Mon, 08 Apr 2013 16:06:18 +0000 Received: from mail-ie0-x232.google.com ([2607:f8b0:4001:c03::232]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UPEaB-0003VQ-2y for pgsql-bugs@postgresql.org; Mon, 08 Apr 2013 16:06:18 +0000 Received: by mail-ie0-f178.google.com with SMTP id bn7so7055737ieb.37 for ; Mon, 08 Apr 2013 09:06:10 -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=iWDKpyAnk/TTdKyIjQ+ZP7AzAdeOktkHqeU/hj1eO6w=; b=XewZz5hMikvkuXT/uSN3lcdqFQnx8I00gaixYoOXb8iO30SrZ+o3AMS0fv6ZlIQiZa n23hBVp+fbVaBmB5ySgqPTm1qnLdU6HSC6HAopow1lG/iqL76XzX8Aqjh+q27vc67lie etFnx1o2EE2C0LSlL7F2XlPR4MBaBlV2K6P+tsRmmGnW6UaDwHSadKnjRWHfoeVSHR5r F7Z2wuSSy8NdVqi+vh6vAsJrpL51U5YFf/YOQ4FKmDJt7Z/u0thOs3OQ4kak21KK0564 WI85QU609xPF1iO0u64NOgZT7OSRvobNK6Dqp6JNzuBDjwlbjaBn3wACdIzmVUJ1u6Fb ar8w== X-Received: by 10.50.212.3 with SMTP id ng3mr7634868igc.43.1365437169969; Mon, 08 Apr 2013 09:06:09 -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 px9sm21853728igc.0.2013.04.08.09.06.09 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 08 Apr 2013 09:06:09 -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: <515FDBBF.8040207@vmware.com> Date: Mon, 8 Apr 2013 10:06:13 -0600 Cc: Jeff Janes , Pg Bugs Content-Transfer-Encoding: quoted-printable Message-Id: <29E6C8DE-6DF2-46AD-A178-8F7147DF6699@visionlink.org> References: <515FDBBF.8040207@vmware.com> To: Heikki Linnakangas X-Mailer: Apple Mail (2.1503) X-Gm-Message-State: ALoCoQkED/ynC8HyoxIlEt4SzaTCfp9ILV7TN1Hvc87P+ouq5BVZBrqW+l8cqM805pxdPZgbVQJI 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 2:24 AM, Heikki Linnakangas wr= ote: > 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 thi= nking 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 im= portant. Perhaps we should improve the documentation to make it more explic= it that backup_label must be included in the backup. The docs already say t= hat, though, so I suspect that people making this mistake have not read the= docs very carefully anyway. >=20 > Perhaps a comment in the beginning of backup_label would help: >=20 > # NOTE: This file MUST be included in the backup. Otherwise, the backup > # is inconsistent, and restoring it may result in a corrupt database. >=20 > Jeff B., assuming that you excluded backup_label from the backup for some= reason, do you have any thoughts on what would've helped you to avoid that= mistake? Would a comment like above have helped - did you look inside back= up_label at any point? I think such a comment could be helpful. The base backups did contain backu= p_label. That is how another script would determine what WAL files to remov= e. It looked at the oldest base backup's backup_label file to get the oldes= t WAL file to keep. My problem was that backup_label was excluded from the data directory when = it was sync'd from the base backup. (We keep base backups separate from dat= a directories, so they can be reused.) I guess it was excluded because it w= as assumed to not be used by archive recovery. So, clarifying backup_label'= s importance there seems 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