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 1kznTS-000737-Ka for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Jan 2021 21:14:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kznTR-0007cR-I7 for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Jan 2021 21:14:37 +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 1kznTQ-0007cK-Qw for pgsql-hackers@lists.postgresql.org; Wed, 13 Jan 2021 21:14:36 +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 1kznTK-0006CT-SK for pgsql-hackers@lists.postgresql.org; Wed, 13 Jan 2021 21:14:35 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 2BF191096; Wed, 13 Jan 2021 16:14:29 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 13 Jan 2021 16:14:29 -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=oEEm/pRUjjkdDaI/EW/QiyW6B3uo5ueEDWD8kVK6j3g=; b=fw3d+960 QhqfEnMka5TB65xys7+dSdLrYQTvLHImj06+SIW8bAo1wosMxPCZDp3kSr/LzisC /qPuIjx5psw8OBcheK0La5R99tBr8C7S9MVJRNSvUbq5a5ig+7D0TGhkBoWmld4w QIzzH5UTxINAjpG9c8/PKOq2DrIsGfER2yT132wCYgaWI6rowtHLOHLGXrfmAbQ9 s0WYPyzSMc6I++8cKeRWOd49sx6cICt1TBpOUneLTbfSwHeuy2OdMF27sPsCwoUn EBM6ya5c6cZH9Vr9ffCoZkuyzQuHU5Ar9/W68ElUPlVvlUlXCnfec1iPh1UaGvsu IIXTVJAA1Eh/LQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedukedrtdefgddugeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfggtggugfgjfgesthekredttderudenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepueffhfejieeuueffgedvudekgeeltdeviedvieeufeei ieevgfetheeufeethedvnecukfhppeduledtrdelhedrudelrddujeejnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgvsegr lhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.19.177]) by mail.messagingengine.com (Postfix) with ESMTPA id 0B9EE1080064; Wed, 13 Jan 2021 16:14:28 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id CD1752A0FC3; Wed, 13 Jan 2021 18:14:25 -0300 (-03) Date: Wed, 13 Jan 2021 18:14:25 -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: <20210113211425.GA16487@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210113210537.GA15374@alvherre.pgsql> 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, Alvaro Herrera wrote: > 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. This appears to be false, per ComputeXidHorizons. -- Álvaro Herrera 39°49'30"S 73°17'W "Ni aún el genio muy grande llegaría muy lejos si tuviera que sacarlo todo de su propio interior" (Goethe)