Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nSSuK-00062a-AV for pgsql-hackers@arkaria.postgresql.org; Fri, 11 Mar 2022 00:13:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nSSuH-0002dn-Q1 for pgsql-hackers@arkaria.postgresql.org; Fri, 11 Mar 2022 00:13:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nSSuH-0002dR-Gp for pgsql-hackers@lists.postgresql.org; Fri, 11 Mar 2022 00:13:21 +0000 Received: from anastigmatix.net ([68.171.219.55]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nSSuF-0007SP-5e for pgsql-hackers@lists.postgresql.org; Fri, 11 Mar 2022 00:13:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=anastigmatix.net; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:Cc:References:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=TIBqtHSUjkRoIBoIIhXo+LGeXeABbaTDr6QoyFaCYko=; b=q8kKxP/Y57ll4+vkltdQ1KOmmL ZTBn3tSt6kdYMewDHdBnYIe9aOPcDkT6vL/Y1M4tQugX0FC0O+ipjia13FdEUn/ASj8Xl4k7F9tCj UaRj7LWF85m3rIKxd+7f8Rl19vEAR/DDfl5vLcaJzXDnPHy2S2IBJnrsRLQ9NL55EEuJaJ0B7A6NB R8rUXMSpUPu7rluiu/eDhe0bcPBu5NiwEf0mMfFdlUYL8ptiT+P9qYl2ZpEe4kNwEEVMGeZRb+hjI Ni2AM/7YlcPd/T0P7+b+0oCsfCz6/QxPWVz9J//Pj4o26S7W3m4jSJjZ4YMLEb0By+iPKO2wmK86I CoXif8Jg==; Received: from [184.19.43.81] (port=50518) by bay.acenet.us with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1nSSuC-002xnj-J8; Thu, 10 Mar 2022 19:13:17 -0500 Subject: Re: Postgres restart in the middle of exclusive backup and the presence of backup_label file To: Nathan Bossart References: <20220308221253.GA169440@nathanxps13> <622801BD.9020605@anastigmatix.net> <20220309154209.GU10577@tamriel.snowman.net> <6228DFE7.4080802@anastigmatix.net> <20220309171923.GV10577@tamriel.snowman.net> <622900C8.40807@anastigmatix.net> <20220309222124.GB180567@nathanxps13> <62293417.8070104@anastigmatix.net> <20220310000622.GA225595@nathanxps13> Cc: Stephen Frost , Magnus Hagander , David Steele , pgsql-hackers@lists.postgresql.org From: Chapman Flack X-Enigmail-Draft-Status: N1110 Message-ID: <622A941A.90909@anastigmatix.net> Date: Thu, 10 Mar 2022 19:13:14 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: <20220310000622.GA225595@nathanxps13> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bay.acenet.us X-AntiAbuse: Original Domain - lists.postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - anastigmatix.net X-Get-Message-Sender-Via: bay.acenet.us: authenticated_id: chap@anastigmatix.net X-Authenticated-Sender: bay.acenet.us: chap@anastigmatix.net X-Source: X-Source-Args: X-Source-Dir: X-From-Rewrite: unmodified, already matched List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 03/09/22 19:06, Nathan Bossart wrote: > Done. I went ahead and added "label => 'label'" for consistency. Looks like this change to an example in func.sgml is not quite right: -postgres=# SELECT * FROM pg_walfile_name_offset(pg_stop_backup()); +postgres=# SELECT * FROM pg_walfile_name_offset(pg_backup_stop()); pg_backup_stop returns a record now, not just lsn. So this works for me: +postgres=# SELECT * FROM pg_walfile_name_offset((pg_backup_stop()).lsn); Otherwise, all looks to be in good order. Regards, -Chap