Disallow dropping rules on system tables by default
authorPeter Eisentraut <peter@eisentraut.org>
Fri, 20 Dec 2019 07:25:43 +0000 (08:25 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 20 Dec 2019 07:27:37 +0000 (08:27 +0100)
commitdf7fe9e2d707da69a4437fb6f9e695c070882160
tree75db38ed1676d8c4323a9f11bc6ef977d212c328
parent8c6d30f211390df911072d33f0114a31f066a4cd
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@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/ee9df1af-c0d8-7c82-5be7-39ce4e3b0a9d%402ndquadrant.com
src/backend/rewrite/rewriteRemove.c
src/test/modules/unsafe_tests/expected/alter_system_table.out
src/test/modules/unsafe_tests/sql/alter_system_table.sql