Thread: [COMMITTERS] pgsql: Prevent table partitions from being turned into views.

[COMMITTERS] pgsql: Prevent table partitions from being turned into views.

From
Dean Rasheed
Date:
Prevent table partitions from being turned into views.

A table partition must be a table, not a view, so don't allow a
"_RETURN" rule to be added that would convert an existing table
partition into a view.

Amit Langote

Discussion: https://postgr.es/m/CAEZATCVzFcAjZwC1bTFvJ09skB_sgkF4SwPKMywev-XTnimp9Q%40mail.gmail.com

Branch
------
master

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

Modified Files
--------------
src/backend/rewrite/rewriteDefine.c | 6 ++++++
src/test/regress/expected/rules.out | 5 +++++
src/test/regress/sql/rules.sql      | 5 +++++
3 files changed, 16 insertions(+)