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 1joFyp-00084N-3H for pgsql-docs@arkaria.postgresql.org; Thu, 25 Jun 2020 00:43:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1joFyn-00006U-Qi for pgsql-docs@arkaria.postgresql.org; Thu, 25 Jun 2020 00:43:01 +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 1joFyn-00006K-Kn for pgsql-docs@lists.postgresql.org; Thu, 25 Jun 2020 00:43:01 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1joFyg-0004KZ-8L for pgsql-docs@lists.postgresql.org; Thu, 25 Jun 2020 00:43:01 +0000 Received: from hnk.local (p2604028-ipngn12401funabasi.chiba.ocn.ne.jp [180.1.110.28]) by oss.nttdata.com (Postfix) with ESMTPSA id E2BFA6029A for ; Thu, 25 Jun 2020 09:42:47 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.3 at oss.nttdata.com Subject: Re: The description for pg_replication_slots.restart_lsn From: Fujii Masao To: pgsql-docs@lists.postgresql.org References: <6497f1e9-3148-c5da-7e49-b2fddad9a42f@oss.nttdata.com> Message-ID: Date: Thu, 25 Jun 2020 09:42:47 +0900 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <6497f1e9-3148-c5da-7e49-b2fddad9a42f@oss.nttdata.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020/06/17 23:47, Fujii Masao wrote: > Hi, > > The document explains that restart_lsn column in pg_replication_slots view is: > >     The address (LSN) of oldest WAL which still might be required by >     the consumer of this slot and thus won't be automatically removed >     during checkpoints. > > But the latter part is not true in v13 thanks to max_slot_wal_keep_size. > I think that we need to update it as follows. Thought? > >     The address (LSN) of oldest WAL which still might be required by >     the consumer of this slot and thus won't be automatically removed >     during checkpoints unless this LSN gets behind more than >     max_slot_wal_keep_size from the current LSN. > > Patch attached. Barring any objection, I will commit this patch. Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION