From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Simplify code to switch pg_class.relrowsecurity in tablecmds.c
Date: Tue, 02 Mar 2021 03:31:45 +0000
Message-ID: <E1lGvlB-0001BY-P7@gemulon.postgresql.org> (raw)
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(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz
Subject: Re: pgsql: Simplify code to switch pg_class.relrowsecurity in tablecmds.c
In-Reply-To: <E1lGvlB-0001BY-P7@gemulon.postgresql.org>
References: <E1lGvlB-0001BY-P7@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox