pgsql: Add regression test for ATTACH PARTITION

2018-10-07 Thread Michael Paquier
Add regression test for ATTACH PARTITION This test case uses a SQL function as partitioning operator, whose evaluation results in the table's relcache being rebuilt partway through the execution of an ATTACH PARTITION command. It is extracted from 39808e8, which fixed a bug where this test case f

pgsql: Remove some unnecessary fields from Plan trees.

2018-10-07 Thread Tom Lane
Remove some unnecessary fields from Plan trees. In the wake of commit f2343653f, we no longer need some fields that were used before to control executor lock acquisitions: * PlannedStmt.nonleafResultRelations can go away entirely. * partitioned_rels can go away from Append, MergeAppend, and Modi

pgsql: Fix speling error

2018-10-07 Thread Magnus Hagander
Fix speling error Reported by Alexander Lakhin in bug #15423 Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/a9da329be0bec586589cefc78da03ddb3fc13cbb Modified Files -- src/bin/pg_basebackup/pg_basebackup.c | 2 +- 1 file changed, 1 insertion(+), 1 deleti