Skip to content

Commit 2f30a5a

Browse files
Remove redundant call to IsExtendedCatalogHook (#323)
Signed-off-by: Rishabh Tanwar <[email protected]> Co-authored-by: Rishabh Tanwar <[email protected]>
1 parent f034a0e commit 2f30a5a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/backend/utils/cache/inval.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,11 +1217,11 @@ CacheInvalidateHeapTuple(Relation relation,
12171217
return;
12181218

12191219
/*
1220-
* We only need to worry about invalidation for tuples that are either in
1221-
* system catalogs or in babelfish catalogs ; user-relation tuples are
1222-
* never in catcaches and can't affect the relcache either.
1220+
* We only need to worry about invalidation for tuples that are in system
1221+
* catalogs; user-relation tuples are never in catcaches and can't affect
1222+
* the relcache either.
12231223
*/
1224-
if (!IsCatalogRelation(relation) && (!IsExtendedCatalogHook || !IsExtendedCatalogHook(relation->rd_id)))
1224+
if (!IsCatalogRelation(relation))
12251225
return;
12261226

12271227
/*

0 commit comments

Comments
 (0)