pgsql: Prevent table partitions from being turned into views.

From: Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Prevent table partitions from being turned into views.
Date: 2017-06-21 09:44:24
Message-ID: E1dNcBU-0001SO-Gl@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-06-21 18:09:47 pgsql: Final pgindent run with old pg_bsd_indent (version 1.3).
Previous Message Heikki Linnakangas 2017-06-21 08:55:58 pgsql: Fix typo in comment.