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 1g4Aoc-0006Ha-CZ for pgsql-bugs@arkaria.postgresql.org; Sun, 23 Sep 2018 20:17:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g4AoZ-0000ZW-L6 for pgsql-bugs@arkaria.postgresql.org; Sun, 23 Sep 2018 20:17:11 +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 1g4AoZ-0000ZP-Bg for pgsql-bugs@lists.postgresql.org; Sun, 23 Sep 2018 20:17:11 +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 1g4AoW-0000xd-7e for pgsql-bugs@lists.postgresql.org; Sun, 23 Sep 2018 20:17:10 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w8NKGvxh001080; Sun, 23 Sep 2018 16:16:57 -0400 From: Tom Lane To: James Robinson cc: Sergei Kornilov , "pgsql-bugs@lists.postgresql.org" Subject: Re: BUG #15396: initdb emits wrong comment for range for effective_io_concurrency In-reply-to: References: <153771876450.14994.560017943128223619@wrigleys.postgresql.org> <15224851537727230@sas1-87f9feb8d943.qloud-c.yandex.net> Comments: In-reply-to James Robinson message dated "Sun, 23 Sep 2018 14:33:53 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1078.1537733817.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 23 Sep 2018 16:16:57 -0400 Message-ID: <1079.1537733817@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk James Robinson writes: >> On Sep 23, 2018, at 2:27 PM, Sergei Kornilov wrote: >> effective_io_concurrency can not be set is your system does not support= USE_POSIX_FADVISE. In this case only allowed value for effective_io_concu= rrency is zero. >> As far i know mac os does not support posix_fadvise. > Possibilities of augmenting either the initdb template comments accordi= ng to if USE_POSIX_FADVISE or not, or perhaps the runtime error (probably = harder). I don't think trying to cram something about this into postgresql.conf.sample is advisable. Those end-of-line comments need to be *short*. Plus, you'd almost certainly confuse people as to whether the info was applicable to them or not. Perhaps a better idea is to rejigger things so that the bad news is delivered by check_effective_io_concurrency rather than changing the hard limits of the GUC. Then it'd be possible to include an errdetail that only zero is supported on platforms that lack posix_fadvise. regards, tom lane