Thread: Remove redundant comment regarding RelationBuildRowSecurity in relcache.c

Hi,

 

A comment in relcache.c mentions that RelationBuildRowSecurity

adds a default-deny policy when no policy exists on table. This

does not seem to be the case. The default deny policy is added

later on, inside get_row_security_policies(). Also it mentions that

there can never be zero policies for a relation which is true

but here it kind of hints that rd_rsdesc->policies can never be

null.

Added a patch to remove both of these comments.

 

Thanks,

Tanzeel Khan

Attachment