pgsql: Disallow dropping rules on system tables by default

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Disallow dropping rules on system tables by default
Date: 2019-12-20 07:32:14
Message-ID: E1iiCli-00020Y-62@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Disallow dropping rules on system tables by default

This was previously not covered by allow_system_table_mods, but now it
is. The impact in practice is probably low, but this makes it
consistent with most other DDL commands.

Reviewed-by: Robert Haas <robertmhaas(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/flat/ee9df1af-c0d8-7c82-5be7-39ce4e3b0a9d%402ndquadrant.com

Branch
------
master

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

Modified Files
--------------
src/backend/rewrite/rewriteRemove.c | 8 ++++++++
src/test/modules/unsafe_tests/expected/alter_system_table.out | 11 ++++++++++-
src/test/modules/unsafe_tests/sql/alter_system_table.sql | 10 +++++++++-
3 files changed, 27 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2019-12-20 08:16:38 pgsql: Generate pg_config.h from pg_config.h.in on Windows
Previous Message Peter Eisentraut 2019-12-20 07:22:27 pgsql: Fix compiler warnings on MSYS2