Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g8TB3-0001xb-9H for pgsql-committers@arkaria.postgresql.org; Fri, 05 Oct 2018 16:42:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g8TAz-0001DA-Ey for pgsql-committers@arkaria.postgresql.org; Fri, 05 Oct 2018 16:42:05 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g8TAz-0001D3-67 for pgsql-committers@lists.postgresql.org; Fri, 05 Oct 2018 16:42:05 +0000 Received: from mail.thelabyrinth.net ([45.56.70.56]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g8TAw-0001cd-0x for pgsql-committers@postgresql.org; Fri, 05 Oct 2018 16:42:03 +0000 Received: from Davids-MacBook.local (host86-180-234-155.range86-180.btcentralplus.com [86.180.234.155]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: dsteele) by mail.thelabyrinth.net (Postfix) with ESMTPSA id 81E9E54661; Fri, 5 Oct 2018 16:41:59 +0000 (UTC) Subject: Re: pgsql: Make WAL segment size configurable at initdb time. From: David Steele To: Michael Paquier , Andres Freund Cc: pgsql-committers@postgresql.org References: <68ea97d6-2ed9-f339-e57d-ab3a33caf3b1@pgmasters.net> <20180920235932.GD1338@paquier.xyz> <4b5568f5-72b7-5355-3450-973e11447569@pgmasters.net> <20180921012354.mvkql65radrpv4gx@alap3.anarazel.de> <20180921045316.GI1338@paquier.xyz> Message-ID: Date: Fri, 5 Oct 2018 17:41:56 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 9/21/18 12:44 PM, David Steele wrote: > On 9/21/18 12:53 AM, Michael Paquier wrote: >> On Thu, Sep 20, 2018 at 06:23:54PM -0700, Andres Freund wrote: >>> 16*M*B, right? If so, that's normal - pg_settings just reports the >>> values in the underlying unit - which is XLOG_BLCKSZ, compile-time >>> defaulting to 8KB. 8192 * 2048 = 16MB. That's the same in various other >>> settings. >> >> Would it bring less confusion if we append something like "When querying >> pg_settings"? I can see David's point the current phrasing is >> confusing: we don't know if this comes from pg_settings or from SHOW. >> It obviously refers to the former, but one can understand that it refers >> to the latter. >> >> A second parameter in config.sgml where this formulation is used is >> segment_size. > > That's why I used a default of 16MB instead of the byte value, because > segment_size used 1GB instead of the byte value. Not sure where we are on this, but for the record I still think the description in PG11 needs to be corrected as in the patch. It doesn't need to be back-patched and the default seems correct to me. Thanks, -- -David david@pgmasters.net