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 1jwMPE-00048L-03 for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Jul 2020 09:11:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jwMPC-00013b-Jk for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Jul 2020 09:11:46 +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 1jwMPC-00013U-D7 for pgsql-hackers@lists.postgresql.org; Fri, 17 Jul 2020 09:11:46 +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 1jwMP7-0004C6-G9 for pgsql-hackers@postgresql.org; Fri, 17 Jul 2020 09:11:46 +0000 Received: from hnk.local (p2360113-ipbf2222funabasi.chiba.ocn.ne.jp [114.177.58.113]) by oss.nttdata.com (Postfix) with ESMTPSA id 06DAC601F1; Fri, 17 Jul 2020 18:11:36 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.3 at oss.nttdata.com Subject: Re: max_slot_wal_keep_size and wal_keep_segments To: David Steele , Kyotaro Horiguchi Cc: alvherre@2ndquadrant.com, pgsql-hackers@postgresql.org References: <6e4f9605-97f3-7eba-f989-4ae41d637d2f@oss.nttdata.com> <20200709.134743.1136524996274963021.horikyota.ntt@gmail.com> <866c681c-3082-7010-cc9e-bf3b9483c991@oss.nttdata.com> <20200713.160111.1304073320526166244.horikyota.ntt@gmail.com> <87269252-772e-2daf-9955-674a24e24de6@pgmasters.net> From: Fujii Masao Message-ID: Date: Fri, 17 Jul 2020 18:11:36 +0900 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <87269252-772e-2daf-9955-674a24e24de6@pgmasters.net> 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/07/14 20:30, David Steele wrote: > On 7/14/20 12:00 AM, Fujii Masao wrote: >> >> The patch was no longer applied cleanly because of recent commit. >> So I updated the patch. Attached. >> >> Barring any objection, I will commit this patch. > > This doesn't look right: > > +   the most recent megabytes > +   WAL files plus one WAL file are > > How about: > > +   megabytes of > +   WAL files plus one WAL file are Thanks for the comment! Isn't it better to keep "most recent" part? If so, what about either of the followings? 1. megabytes of WAL files plus one WAL file that were most recently generated are kept all time. 2. megabytes + bytes of WAL files that were most recently generated are kept all time. Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION