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 1k38wz-0005A2-8O for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Aug 2020 02:14:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k38wy-0005WA-4u for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Aug 2020 02:14:40 +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 1k38wx-0005W3-UT for pgsql-hackers@lists.postgresql.org; Wed, 05 Aug 2020 02:14:39 +0000 Received: from mail-qv1-xf41.google.com ([2607:f8b0:4864:20::f41]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1k38wv-0004B4-Rb for pgsql-hackers@postgresql.org; Wed, 05 Aug 2020 02:14:38 +0000 Received: by mail-qv1-xf41.google.com with SMTP id dd12so15054395qvb.0 for ; Tue, 04 Aug 2020 19:14:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=F+cFVX3gUD1oQpyti9GtY2LWGEBGZ8nITHdd42A1YxI=; b=Gwy/oqnOODHgAzB7DzioP67px6LKtZAUuktVyw0io6NrdzLDlbSALWde2p4Yt33qkQ 7UYFPI3tGkbSu9nOd9WCbaiDSKoqijWSlL67XEdzgon69XimIPvIRpGJsgfSHIpyZuHn Dvcfx86hEupRybj4yDPJ5vI44sg15YjjLhSTbeiQChc9Q+FntQVC7C21zBcIyQiZ/wud Wz8ZnOzWK14oN6ga3HheGZcsctVQj3VTJU3PT3PyWFNdXHo0fuMGOyskiLgZOhMOvraL iFIYc3OCD65dHW5/TWWsT3thmTIsIrOFs93MZQYJGKQpWBnbM0gessM1V9oDAgBeRSdT vRLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=F+cFVX3gUD1oQpyti9GtY2LWGEBGZ8nITHdd42A1YxI=; b=ZEepLtkghlXJ74CnS8CW8dW8avh0E7Hi2wY6v7K2j54gzvvcF2cns2FysPKhQUo8oX RfGhcsgj56Mn4kxZ/YcGntncOQAjh+ALUNTWzFzI1BRGcPqF0vN7HQ8S8eIGSzvhpwBC dEKhc3zCopvhejiAA+wL5WQOd/2uNjPz7/zLYfxELbKnS+7xkV4wPbyziLV0LxJ9V1I0 fATWQCUg2cBc8gBKOMNbsFhkN4sS/weTfsyJtPBXLGybagM+VufPJY+dZGrKvmsPY+yU umtHL4hnhJ5UM9ymeeHtigGjYrNedEExYS9REwyUa8Jz6V/nbL1yPOzNyaxOgk8Jj9Ps hC9g== X-Gm-Message-State: AOAM530eF5r87rBd1pyqKPvc4jViNVnao1pMBIo2W1VwDW8qFMKTOWPg HfvOzSPGlidjbe3GuLWZvpOGSg== X-Google-Smtp-Source: ABdhPJyQX47UE7Mukb4D0XiC3rRuz4KBLKsm3Y3OEOSGsNNSrUjeTCdA7z9bv0NJXFuZ7IVKO4yoHg== X-Received: by 2002:a0c:eed1:: with SMTP id h17mr1340884qvs.96.1596593676974; Tue, 04 Aug 2020 19:14:36 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([190.95.19.47]) by smtp.gmail.com with ESMTPSA id x198sm584536qka.37.2020.08.04.19.14.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Aug 2020 19:14:36 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 077502A032F; Tue, 4 Aug 2020 22:14:35 -0400 (-04) Date: Tue, 4 Aug 2020 22:14:35 -0400 From: Alvaro Herrera To: Andres Freund Cc: James Coleman , pgsql-hackers Subject: Re: [DOC] Document concurrent index builds waiting on each other Message-ID: <20200805021435.GA9523@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200805021109.GA9079@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 2020-Aug-04, Alvaro Herrera wrote: > diff --git a/src/include/storage/proc.h b/src/include/storage/proc.h > index b20e2ad4f6..43c8ea3e31 100644 > --- a/src/include/storage/proc.h > +++ b/src/include/storage/proc.h > @@ -53,6 +53,8 @@ struct XidCache > #define PROC_IS_AUTOVACUUM 0x01 /* is it an autovac worker? */ > #define PROC_IN_VACUUM 0x02 /* currently running lazy vacuum */ > #define PROC_IN_ANALYZE 0x04 /* currently running analyze */ > +#define PROC_IN_CIC 0x40 /* currently running CREATE INDEX > + CONCURRENTLY */ > #define PROC_VACUUM_FOR_WRAPAROUND 0x08 /* set by autovac only */ > #define PROC_IN_LOGICAL_DECODING 0x10 /* currently doing logical > * decoding outside xact */ Hah, missed to add new bit to PROC_VACUUM_STATE_MASK here. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services