]> granicus.if.org Git - postgresql/commit
Prevent table partitions from being turned into views.
authorDean Rasheed <dean.a.rasheed@gmail.com>
Wed, 21 Jun 2017 09:43:17 +0000 (10:43 +0100)
committerDean Rasheed <dean.a.rasheed@gmail.com>
Wed, 21 Jun 2017 09:43:17 +0000 (10:43 +0100)
commitbcbf392ec84362040faf72daad22c647c74e2b2a
treeffb74cdf9b3c488bdbe233e4a59a0ca9156aae0e
parentba1f017069dd87d309e2716bf08a40df42b29baa
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
src/backend/rewrite/rewriteDefine.c
src/test/regress/expected/rules.out
src/test/regress/sql/rules.sql