From 6be30d4e1bbcca7ff456f23c3a3c3c3b2021ec9e Mon Sep 17 00:00:00 2001 From: Tanzeel Khan Date: Mon, 28 Apr 2025 12:59:32 +0000 Subject: [PATCH] Remove redundant comment about RelationBuildRowSecurity RelationBuildRowSecurity does not create the default-deny policy so remove the comment which says so. --- src/backend/utils/cache/relcache.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/backend/utils/cache/relcache.c b/src/backend/utils/cache/relcache.c index 559ba9cdb2cd..d3c43a3b28b2 100644 --- a/src/backend/utils/cache/relcache.c +++ b/src/backend/utils/cache/relcache.c @@ -4328,10 +4328,7 @@ RelationCacheInitializePhase3(void) /* * Re-load the row security policies if the relation has them, since - * they are not preserved in the cache. Note that we can never NOT - * have a policy while relrowsecurity is true, - * RelationBuildRowSecurity will create a single default-deny policy - * if there is no policy defined in pg_policy. + * they are not preserved in the cache. */ if (relation->rd_rel->relrowsecurity && relation->rd_rsdesc == NULL) {