Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Fix back-patch of "Avoid race in RelationBuildDesc() ..."
authorNoah Misch <noah@leadboat.com>
Thu, 10 Feb 2022 02:16:56 +0000 (18:16 -0800)
committerNoah Misch <noah@leadboat.com>
Thu, 10 Feb 2022 02:16:56 +0000 (18:16 -0800)
The back-patch of commit fdd965d074d46765c295223b119ca437dbcac973 broke
CLOBBER_CACHE_ALWAYS for v9.6 through v13.  It updated the
InvalidateSystemCaches() call for CLOBBER_CACHE_RECURSIVELY, neglecting
the one for CLOBBER_CACHE_ALWAYS.  Back-patch to v13, v12, v11, and v10.

Reviewed by Tomas Vondra.  Reported by Tomas Vondra.

Discussion: https://postgr.es/m/df7b4c0b-7d92-f03f-75c4-9e08b269a716@enterprisedb.com

src/backend/utils/cache/inval.c

index 8b0503f41c10ca107159122e556a247f1c2b31d9..8fe1f0d922259609f93d9f79b1af32a7d8c57064 100644 (file)
@@ -725,7 +725,7 @@ AcceptInvalidationMessages(void)
        if (!in_recursion)
        {
            in_recursion = true;
-           InvalidateSystemCaches();
+           InvalidateSystemCachesExtended(true);
            in_recursion = false;
        }
    }