pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: James Robinson <james@jlr-photo.com>
Cc: Sergei Kornilov <sk@zsrv.org>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #15396: initdb emits wrong comment for range for effective_io_concurrency
Date: Sun, 23 Sep 2018 16:16:57 -0400
Message-ID: <1079.1537733817@sss.pgh.pa.us> (raw)
In-Reply-To: <FC4EF41B-8D7D-44AD-87B3-B6A8FFAB0885@jlr-photo.com>
References: <153771876450.14994.560017943128223619@wrigleys.postgresql.org>
	<15224851537727230@sas1-87f9feb8d943.qloud-c.yandex.net>
	<FC4EF41B-8D7D-44AD-87B3-B6A8FFAB0885@jlr-photo.com>

James Robinson <james@jlr-photo.com> writes:
>> On Sep 23, 2018, at 2:27 PM, Sergei Kornilov <sk@zsrv.org> 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_concurrency is zero.
>> As far i know mac os does not support posix_fadvise.

> 	Possibilities of augmenting either the initdb template comments according 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




view thread (4+ messages)

Message-ID: <1079.1537733817@sss.pgh.pa.us>
Permalink:  ../1079.1537733817@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1079.1537733817@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, james@jlr-photo.com, sk@zsrv.org
  Subject: Re: BUG #15396: initdb emits wrong comment for range for effective_io_concurrency
  In-Reply-To: <1079.1537733817@sss.pgh.pa.us>
  References: <153771876450.14994.560017943128223619@wrigleys.postgresql.org> <15224851537727230@sas1-87f9feb8d943.qloud-c.yandex.net> <FC4EF41B-8D7D-44AD-87B3-B6A8FFAB0885@jlr-photo.com> <1079.1537733817@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox