diff options
Diffstat (limited to 'src/backend/utils/cache/inval.c')
-rw-r--r-- | src/backend/utils/cache/inval.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/backend/utils/cache/inval.c b/src/backend/utils/cache/inval.c index 730a2949214..587a2cd248b 100644 --- a/src/backend/utils/cache/inval.c +++ b/src/backend/utils/cache/inval.c @@ -509,11 +509,8 @@ RegisterRelcacheInvalidation(Oid dbId, Oid relId) /* * If the relation being invalidated is one of those cached in the local * relcache init file, mark that we need to zap that file at commit. - * (Note: perhaps it would be better if this code were a bit more - * decoupled from the knowledge that the init file contains exactly those - * non-shared rels used in catalog caches.) */ - if (OidIsValid(dbId) && RelationSupportsSysCache(relId)) + if (OidIsValid(dbId) && RelationIdIsInInitFile(relId)) transInvalInfo->RelcacheInitFileInval = true; } |