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 1fXqOS-0006ey-Vq for pgsql-committers@arkaria.postgresql.org; Tue, 26 Jun 2018 16:00:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fXqOR-0001CX-0L for pgsql-committers@arkaria.postgresql.org; Tue, 26 Jun 2018 16:00:35 +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 1fXqOQ-0001CQ-ON for pgsql-committers@lists.postgresql.org; Tue, 26 Jun 2018 16:00:34 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fXqOO-0001oo-19 for pgsql-committers@lists.postgresql.org; Tue, 26 Jun 2018 16:00:33 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w5QG0Uta012622; Tue, 26 Jun 2018 12:00:30 -0400 From: Tom Lane To: Alexander Korotkov cc: Alexander Korotkov , pgsql-committers Subject: Re: pgsql: Increase upper limit for vacuum_cleanup_index_scale_factor In-reply-to: References: Comments: In-reply-to Alexander Korotkov message dated "Tue, 26 Jun 2018 15:59:12 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <22603.1530028829.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 26 Jun 2018 12:00:29 -0400 Message-ID: <22604.1530028829@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alexander Korotkov writes: > BTW, this line looks cumbersome. > +DETAIL: Valid values are between "0.000000" and > "17976931348623157081452742373170435679807056752584499659891747680315726= 07800285387605895586327668781715404589535143824642343213268894641827684675= 46703537516986049910576551282076245490090389328944075868508455133942304583= 23690322294816580855933212334827479782620414472316873817718091929988125040= 4026184124858368.000000". > It's not something introduced by this patch, because other reloptions > behave the same. Should we change output format for real reloption > boundaries to '%g' (as guc.c does). It looks much better. > ERROR: -1 is outside the valid range for parameter "random_page_cost" > (0 .. 1.79769e+308) %g, unmodified, is a bad idea because it loses a lot of precision in some cases (due to the assumption that nobody cares about more than six digits). Maybe you could fix that by using %.15g or some such, but... I think that the original patch to use DBL_MAX was itself a bad idea and should be rethought. It creates (what is in principle) a platform-dependent limit, for no adequate justification. Why not just set it to 1e9 or 1e10 or some such? regards, tom lane