Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hQhWD-0005OV-PP for pgsql-hackers@arkaria.postgresql.org; Wed, 15 May 2019 00:11:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hQhWC-0006HH-Ke for pgsql-hackers@arkaria.postgresql.org; Wed, 15 May 2019 00:11:36 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hQhWA-0006H9-Df for pgsql-hackers@lists.postgresql.org; Wed, 15 May 2019 00:11:36 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hQhW7-0003PU-RF for pgsql-hackers@lists.postgresql.org; Wed, 15 May 2019 00:11:33 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 065EA24627; Tue, 14 May 2019 20:11:31 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 14 May 2019 20:11:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=yWljoMrPOYyO7N1zvD8ce7xtdYt 9Wh08bKQkLIBHvo8=; b=NUe1u4+S7R6FlXCM+TvNuAw7m0sr6ORbPcBxg7HTydY u7UWwdGTkPk/NmGiTJKwsBHhfJxcajq9IXV+yTxsUPiOdXmMoJJKR54ZhZcFPCba SRHHBQ1vs5kGpfgWOUHQpSHLd02aQvXlz2LzEoaYsUy1dAaj/3zKeyR/fa7eR/Fh 9+nX/R+tQvyFBuStVYALexXuOg6eC5YVd1hlSSsXOlIgjB+SwyGnVE9D8zFHESh8 dfqee/Aw5xIrgGhCGoZh62zMO9SKVeow5yQUjw0xGEAJ+SkqV/uaTwBvroGAALa9 SC9WaWzdqnqbt5ZQFwVuGe6xClTFi4wePhbEhNRbsEA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=yWljoM rPOYyO7N1zvD8ce7xtdYt9Wh08bKQkLIBHvo8=; b=BhvdPLl2QoWWjB6kXOWpeU 88x23K+aem9myC7335Hzg25KycMsARERG/ICQa86YAHw3L+KDnyjSDZIroWBCVmx cg/wpl/HUOJQ9Gz+KuMO+/7Q4VMldw8D9Ke9qdYHOhaC4ppf+wlH3gSOx7AVy4Fp 3ZAaSZx80uZR9rMq5u00Ha3aurAk13gUYxTaa8u54KYtGKjy0xJi008EcuU+EP2L TK8cKVSMPGSusqk9maIqfevvmXQYiYg7sBEVR/Gg2jozrzLsEjGAaPXnO3dbRgWX znkinERJD/am2U4WJ526pxMYADXux9/RnSTjmFqLoKR2VeA/sIzMPDIzXfiUb+QQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrleejgdefvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughrvghs ucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecukfhppeelke drvddutddrudegtddrudejudenucfrrghrrghmpehmrghilhhfrhhomheprghnughrvghs segrnhgrrhgriigvlhdruggvnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from intern.anarazel.de (c-98-210-140-171.hsd1.ca.comcast.net [98.210.140.171]) by mail.messagingengine.com (Postfix) with ESMTPA id EBF0110379; Tue, 14 May 2019 20:11:29 -0400 (EDT) Date: Tue, 14 May 2019 17:11:28 -0700 From: Andres Freund To: Thomas Munro Cc: Robert Haas , Tom Lane , Peter Geoghegan , PostgreSQL Hackers Subject: Re: pgsql: Compute XID horizon for page level index vacuum on primary. Message-ID: <20190515001128.g6u5c2hia5ujtvsq@alap3.anarazel.de> References: <20190402012659.4znhbisezbm7juvf@alap3.anarazel.de> <20190501161506.zddyro2ehdf7rwm2@alap3.anarazel.de> <25965.1556729416@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2019-05-15 12:01:07 +1200, Thomas Munro wrote: > On Thu, May 2, 2019 at 5:10 AM Robert Haas wrote: > > On Wed, May 1, 2019 at 12:50 PM Tom Lane wrote: > > > > Not strongly enough to argue about it very hard. The current behavior > > > > is a little weird, but it's a long way from being the weirdest thing > > > > we ship, and it appears that we have no tangible evidence that it > > > > causes a problem in practice. > > > > > > I think there's nothing that fails to suck about a hardwired "+ 10". > > > > It avoids a performance regression without adding another GUC. > > > > That may not be enough reason to keep it like that, but it is one > > thing that does fail to suck. > > 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). > > The rationale for using a different number is that this backend is > working on behalf of multiple sessions, so you might want to give it > some more juice, much like maintenance_work_mem. > > 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. Greetings, Andres Freund