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

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Simplify code to switch pg_class.relrowsecurity in tablecmds.c
Date: 2021-03-02 03:31:45
Message-ID: E1lGvlB-0001BY-P7@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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: https://postgr.es/m/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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2021-03-02 04:21:09 pgsql: Fix duplicated test case in TAP tests of reindexdb
Previous Message Michael Paquier 2021-03-02 01:55:54 pgsql: doc: Improve description of data checksums