Ensure that child table inherits distribution stretegy from the parent.
authorPavan Deolasee <pavan.deolasee@gmail.com>
Thu, 13 Jul 2017 07:24:55 +0000 (12:54 +0530)
committerPavan Deolasee <pavan.deolasee@gmail.com>
Thu, 13 Jul 2017 07:31:20 +0000 (13:01 +0530)
commite26a0e07d863777079bfe9fc335ca2b71377b731
treeaa11f6d30e3b98c4951b0e9cb77ea2acf96c220e
parenta0f550b412fb208ea6722ed0c81f299e1d3e507f
Ensure that child table inherits distribution stretegy from the parent.

For partitioned tables or in general inherited tables, we now enforce that the
child table always inherit the distribution strategy of the parent. This not
only makes it far easier to handle various cases correctly, but would also
allow us to optimise distributed queries on partitioned tables much easily.

Tank.zhang <6220104@qq.com> originally reported a problem with partitioned
tables and incorrect query execution. Upon investigations, we decided to make
these restrictions to simplify things.
src/backend/parser/parse_utilcmd.c
src/test/regress/expected/alter_table.out
src/test/regress/expected/foreign_key.out
src/test/regress/expected/inherit.out
src/test/regress/expected/updatable_views.out
src/test/regress/expected/with.out
src/test/regress/expected/xc_for_update.out
src/test/regress/expected/xc_prepared_xacts.out