pgsql: Simplify code to switch pg_class.relrowsecurity in tablecmds.c

Started by Michael Paquierover 5 years ago1 messagescomitters
Jump to latest
#1Michael Paquier
michael@paquier.xyz

Simplify code to switch pg_class.relrowsecurity in tablecmds.c

The same code pattern was repeated twice to enable or disable ROW LEVEL
SECURITY with an ALTER TABLE command. This makes the code slightly
cleaner.

Author: Justin Pryzby
Reviewed-by: Zhihong Yu
Discussion: /messages/by-id/20210228211854.GC20769@telsasoft.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/fabde52fab976ff782d77c80b8e2614f94f9dce1

Modified Files
--------------
src/backend/commands/tablecmds.c | 34 +++++-----------------------------
1 file changed, 5 insertions(+), 29 deletions(-)