aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/cache/inval.c
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2022-02-09 18:16:56 -0800
committerNoah Misch <noah@leadboat.com>2022-02-09 18:16:59 -0800
commit2d96a66c2eef76f44cc9f9eca1a611330e215dc0 (patch)
tree12ca1262638ff0c33729f5cfdd4ce92a6a626ba6 /src/backend/utils/cache/inval.c
parenteba0f095c780fad505a859ee6713123692affa30 (diff)
downloadpostgresql-2d96a66c2eef76f44cc9f9eca1a611330e215dc0.tar.gz
postgresql-2d96a66c2eef76f44cc9f9eca1a611330e215dc0.zip
Fix back-patch of "Avoid race in RelationBuildDesc() ..."
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
Diffstat (limited to 'src/backend/utils/cache/inval.c')
-rw-r--r--src/backend/utils/cache/inval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/cache/inval.c b/src/backend/utils/cache/inval.c
index a0bbf279cbf..e2b9976e931 100644
--- a/src/backend/utils/cache/inval.c
+++ b/src/backend/utils/cache/inval.c
@@ -725,7 +725,7 @@ AcceptInvalidationMessages(void)
if (!in_recursion)
{
in_recursion = true;
- InvalidateSystemCaches();
+ InvalidateSystemCachesExtended(true);
in_recursion = false;
}
}