Remove redundant comment regarding RelationBuildRowSecurity in relcache.c - Mailing list pgsql-hackers

From Khan, Tanzeel
Subject Remove redundant comment regarding RelationBuildRowSecurity in relcache.c
Date
Msg-id 8BD3D145-D880-49B9-9A5D-09EDEF5CEF4A@amazon.com
Whole thread Raw
List pgsql-hackers

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

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: allow changing autovacuum_max_workers without restarting
Next
From: Álvaro Herrera
Date:
Subject: Re: Restrict publishing of partitioned table with a foreign table as partition