pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Thomas Munro <thomas.munro@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Peter Geoghegan <pg@bowt.ie>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: pgsql: Compute XID horizon for page level index vacuum on primary.
Date: Wed, 15 May 2019 11:53:13 -0400
Message-ID: <13619.1557935593@sss.pgh.pa.us> (raw)
In-Reply-To: <20190515001128.g6u5c2hia5ujtvsq@alap3.anarazel.de>
References: <CAH2-WznJkQaeVX-ZADp-X6spy2Kz4XUr5GHyZwxmxw-EUocj5A@mail.gmail.com>
	<DB9129B1-D730-4FA2-824D-471DA0F57399@anarazel.de>
	<CA+hUKGJ1NA0zoB5PTaxLg_FM1S0FVkdbFxjGiYa+syp48g9=mQ@mail.gmail.com>
	<CA+TgmoZP-CTmEPZdmqEOb+6t_Tts2nuF7eoqxxvXEHaUoBDmsw@mail.gmail.com>
	<20190402012659.4znhbisezbm7juvf@alap3.anarazel.de>
	<20190501161506.zddyro2ehdf7rwm2@alap3.anarazel.de>
	<CA+Tgmobv3HhQGe7mq9OkEiaXvqahccWgXQb3YtPH4o2EqJu3Ow@mail.gmail.com>
	<25965.1556729416@sss.pgh.pa.us>
	<CA+TgmoYX_NpujURawaV-UH6HLSCsdjEw8-qxQ_DKM22BNRqYZw@mail.gmail.com>
	<CA+hUKGLQWWqFKkBDPYUhVV=pSAzy6ZVKRiKREyY+o25+djyOqA@mail.gmail.com>
	<20190515001128.g6u5c2hia5ujtvsq@alap3.anarazel.de>

Andres Freund <andres@anarazel.de> writes:
> On 2019-05-15 12:01:07 +1200, Thomas Munro wrote:
>> This is listed as an open item to resolve for 12.  IIUC the options on
>> the table are:
>> 
>> 1.  Do nothing, and ship with effective_io_concurrency + 10.
>> 2.  Just use effective_io_concurrency without the hardwired boost.
>> 3.  Switch to a new GUC maintenance_io_concurrency (or some better name).
>> 
>> I vote for option 3.  I have no clue how to set it, but at least users
>> have a fighting chance of experimenting and figuring it out that way.
>> I volunteer to write the patch if we get a consensus.

> I'd personally, unsurprisingly perhaps, go with 1 for v12. I think 3 is
> also a good option - it's easy to imagine to later use it for for
> VACUUM, ANALYZE and the like.  I think 2 is a bad idea.

FWIW, I also agree with settling for #1 at this point.  A new GUC would
make more sense if we have multiple use-cases for it, which we probably
will at some point, but not today.  I'm concerned that if we invent a
GUC now, we might find out that it's not really usable for other cases
in future (e.g., default value is no good for other cases).  It's the
old story that inventing an API with only one use-case in mind leads
to a bad API.

So yeah, let's leave this be for now, ugly as it is.  Improving it
can be future work.

			regards, tom lane





view thread (30+ messages)  latest in thread

Message-ID: <13619.1557935593@sss.pgh.pa.us>
Permalink:  ../13619.1557935593@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13619.1557935593@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-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andres@anarazel.de, thomas.munro@gmail.com, robertmhaas@gmail.com, pg@bowt.ie, pgsql-hackers@lists.postgresql.org
  Subject: Re: pgsql: Compute XID horizon for page level index vacuum on primary.
  In-Reply-To: <13619.1557935593@sss.pgh.pa.us>
  References: <CAH2-WznJkQaeVX-ZADp-X6spy2Kz4XUr5GHyZwxmxw-EUocj5A@mail.gmail.com> <DB9129B1-D730-4FA2-824D-471DA0F57399@anarazel.de> <CA+hUKGJ1NA0zoB5PTaxLg_FM1S0FVkdbFxjGiYa+syp48g9=mQ@mail.gmail.com> <CA+TgmoZP-CTmEPZdmqEOb+6t_Tts2nuF7eoqxxvXEHaUoBDmsw@mail.gmail.com> <20190402012659.4znhbisezbm7juvf@alap3.anarazel.de> <20190501161506.zddyro2ehdf7rwm2@alap3.anarazel.de> <CA+Tgmobv3HhQGe7mq9OkEiaXvqahccWgXQb3YtPH4o2EqJu3Ow@mail.gmail.com> <25965.1556729416@sss.pgh.pa.us> <CA+TgmoYX_NpujURawaV-UH6HLSCsdjEw8-qxQ_DKM22BNRqYZw@mail.gmail.com> <CA+hUKGLQWWqFKkBDPYUhVV=pSAzy6ZVKRiKREyY+o25+djyOqA@mail.gmail.com> <20190515001128.g6u5c2hia5ujtvsq@alap3.anarazel.de> <13619.1557935593@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