Re: pgsql: Avoid race in RelationBuildDesc() affecting CREATE INDEX CONCURR

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Andres Freund <andres@anarazel.de>
Cc: Tomas Vondra <tomas.vondra@enterprisedb.com>, pgsql-hackers@postgresql.org, pgsql-release@postgresql.org, Noah Misch <noah@leadboat.com>, pgsql-committers@lists.postgresql.org
Date: 2022-02-09T01:23:06Z
Lists: pgsql-hackers
On Tue, Feb 08, 2022 at 04:43:47PM -0800, Andres Freund wrote:
> Ugh. Do we need to do something about WRT the next set of minor
> releases?

The set of minor releases of this week has already been stamped, so
that's too late :/

> Is there a a chance of this occuring in "real" workloads?

Ugh++.  The problem is that we would not really detect that
automatically, isn't it?
--
Michael

Commits

  1. Fix back-patch of "Avoid race in RelationBuildDesc() ..."

  2. Avoid race in RelationBuildDesc() affecting CREATE INDEX CONCURRENTLY.