Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kznKt-0006p6-Vi for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Jan 2021 21:05:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kznKs-00037t-Pk for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Jan 2021 21:05:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kznKr-00037m-Vx for pgsql-hackers@lists.postgresql.org; Wed, 13 Jan 2021 21:05:46 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kznKp-00068P-Es for pgsql-hackers@lists.postgresql.org; Wed, 13 Jan 2021 21:05:45 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 884CDEB9; Wed, 13 Jan 2021 16:05:41 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 13 Jan 2021 16:05:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=iq939D5H0hZDNfJZNK4FCcTTLWWyAOREmwkGT/4Sy5U=; b=XzWs0cvg jxjYLvw9+ihYlEvO9Vqn2fkb3MKu/38Sn9+94Il5d3RJcXSKqPwF1Y4fQqTHfjB1 +2hSKA0bxaEnoLck6bx3kMI5Z/TQVguVmqNye8arUxfS0dE+w7sVIl/LGlaNuHyy EP791ODJ9UohyRx4rqlGSygdoOebw0l6zZGzPy4Z4aV8v3K2adXZh/L3ayhVoL0+ lWyVZhxQsTf2GkNn+bWfMTFFXW0bEGW4SzmegDhF0j5NtyA55AR7Qn68CS+Gt9af wM3cK8clyWT31g/YFXG5qdOrbtAf+d9yBbMDVa91iqbx+xikup3+gL0jYQ3sv4Dk GeYUe0g168tsDw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedukedrtdefgddugeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfggtggugfgjfgesthekredttderudenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepveejjeekjeejieevueduvdefffeihfffgfelhefgueeg jeehuddvfeekiefhffdtnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenuc fkphepudeltddrleehrdduledrudejjeenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorh hg X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.19.177]) by mail.messagingengine.com (Postfix) with ESMTPA id 7EB3F1080057; Wed, 13 Jan 2021 16:05:40 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id C82A92A0FC3; Wed, 13 Jan 2021 18:05:37 -0300 (-03) Date: Wed, 13 Jan 2021 18:05:37 -0300 From: Alvaro Herrera To: James Coleman Cc: Michael Paquier , David Johnston , PostgreSQL Developers , Andres Freund Subject: Re: [DOC] Document concurrent index builds waiting on each other Message-ID: <20210113210537.GA15374@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2021-Jan-13, James Coleman wrote: > On Wed, Jan 13, 2021 at 12:33 PM Alvaro Herrera wrote: > > This is true. So I propose > > > > Like any long-running transaction, REINDEX can > > affect which tuples can be removed by concurrent VACUUM > > on any table. > > That sounds good to me. Great, pushed with one more wording tweak: "REINDEX on any table can affect ... on any other table". To pg12 and up. I wondered about noting whether only processes in the current database are affected, but then I noticed that the current code since commit dc7420c2c927 uses a completely different algorithm than what we had with GetOldestXmin() and does not consider database boundaries at all. This doesn't sound great to me, since a misbehaved database can now affect others ... Maybe I misunderstand that code. -- Álvaro Herrera 39°49'30"S 73°17'W "This is what I like so much about PostgreSQL. Most of the surprises are of the "oh wow! That's cool" Not the "oh shit!" kind. :)" Scott Marlowe, http://archives.postgresql.org/pgsql-admin/2008-10/msg00152.php