Prevent table partitions from being turned into views.
Dean Rasheed <dean.a.rasheed@gmail.com>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/rewrite/rewriteDefine.c | modified | +6 −0 |
| src/test/regress/expected/rules.out | modified | +5 −0 |
| src/test/regress/sql/rules.sql | modified | +5 −0 |
Discussion
- Rules on table partitions 7 messages · 2017-06-19 → 2017-06-22