Simplify code to switch pg_class.relrowsecurity in tablecmds.c
Michael 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: https://postgr.es/m/20210228211854.GC20769@telsasoft.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/tablecmds.c | modified | +5 −29 |
Discussion
- [PATCH] refactor ATExec{En,Dis}ableRowSecurity 4 messages · 2021-02-28 → 2021-03-02