Re: [PATCH] refactor ATExec{En,Dis}ableRowSecurity

Zhihong Yu <zyu@yugabyte.com>

From: Zhihong Yu <zyu@yugabyte.com>
To: Justin Pryzby <pryzby@telsasoft.com>
Cc: Stephen Frost <sfrost@snowman.net>, PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2021-02-28T22:27:44Z
Lists: pgsql-hackers
Hi,
For 0002-Further-refactoring.patch, should there be assertion
inside ATExecSetRowSecurity() on the values for rls and force_rls ?
There could be 3 possible values: -1, 0 and 1.

Cheers

On Sun, Feb 28, 2021 at 1:19 PM Justin Pryzby <pryzby@telsasoft.com> wrote:

> tablecmds.c is 17k lines long, this makes it ~30 lines shorter.
>

Commits

  1. Simplify code to switch pg_class.relrowsecurity in tablecmds.c