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 1kzptO-0003Q8-9a for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Jan 2021 23:49:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kzptN-0001bT-8g for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Jan 2021 23:49:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kzptN-0001bM-2H for pgsql-hackers@lists.postgresql.org; Wed, 13 Jan 2021 23:49:33 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kzptL-0007Ml-4n for pgsql-hackers@lists.postgresql.org; Wed, 13 Jan 2021 23:49:32 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 10DNnPaw1342638; Wed, 13 Jan 2021 18:49:25 -0500 From: Tom Lane To: James Coleman cc: Alvaro Herrera , Michael Paquier , David Johnston , PostgreSQL Developers , Andres Freund Subject: Re: [DOC] Document concurrent index builds waiting on each other In-reply-to: References: <20210113211604.GA16584@alvherre.pgsql> <1337019.1610573371@sss.pgh.pa.us> <1338243.1610575228@sss.pgh.pa.us> Comments: In-reply-to James Coleman message dated "Wed, 13 Jan 2021 17:52:16 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1342636.1610581765.1@sss.pgh.pa.us> Date: Wed, 13 Jan 2021 18:49:25 -0500 Message-ID: <1342637.1610581765@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk James Coleman writes: > On Wed, Jan 13, 2021 at 5:00 PM Tom Lane wrote: >> [ raised eyebrow ] Surely REINDEX and VACUUM can't run on the same >> table at the same time. > + Like any long-running transaction, CREATE INDEX on a > + table can affect which tuples can be removed by concurrent > + VACUUM on any other table. > The "on a table" is the table on which the REINDEX/CREATE INDEX is > occurring. The "any other table" is where VACUUM might run. I still think it'd be just as clear without the auxiliary clauses, say + Like any long-running transaction, CREATE INDEX + can affect which tuples can be removed by concurrent + VACUUM operations. regards, tom lane