pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Andres Freund <andres@anarazel.de>
Cc: James Coleman <jtc331@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: [DOC] Document concurrent index builds waiting on each other
Date: Tue, 4 Aug 2020 22:14:35 -0400
Message-ID: <20200805021435.GA9523@alvherre.pgsql> (raw)
In-Reply-To: <20200805021109.GA9079@alvherre.pgsql>

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





view thread (50+ messages)  latest in thread

Message-ID: <20200805021435.GA9523@alvherre.pgsql>
Permalink:  ../20200805021435.GA9523@alvherre.pgsql/
Also on:    postgresql.org/message-id/20200805021435.GA9523@alvherre.pgsql

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: alvherre@2ndquadrant.com, andres@anarazel.de, jtc331@gmail.com
  Subject: Re: [DOC] Document concurrent index builds waiting on each other
  In-Reply-To: <20200805021435.GA9523@alvherre.pgsql>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox