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

Tomas Vondra <tomas.vondra@enterprisedb.com>

From: Tomas Vondra <tomas.vondra@enterprisedb.com>
To: Noah Misch <noah@leadboat.com>
Cc: Andres Freund <andres@anarazel.de>, pgsql-hackers@postgresql.org, pgsql-committers@lists.postgresql.org
Date: 2022-02-09T15:27:39Z
Lists: pgsql-hackers
On 2/9/22 06:41, Noah Misch wrote:
>
> The explanation was more boring than that.  v13 and earlier have an additional
> InvalidateSystemCaches() call site, which I neglected to update.  Here's the
> fix I intend to push.

I tried this patch on 10 and 13, and it seems to fix the issue. So +1.

regards

-- 
Tomas Vondra
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



Commits

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

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