Disallow dropping rules on system tables by default

Enterprise / PostgreSQL - Peter Eisentraut [eisentraut.org] - 20 December 2019 07:27 UTC

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.

df7fe9e2d7 Disallow dropping rules on system tables by default
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(-)

Upstream: git.postgresql.org


  • Share