[COMMITTERS] pgsql: pageinspect: Make page test more portable

2016-11-02 Thread Peter Eisentraut
pageinspect: Make page test more portable Choose test data that makes the output independent of endianness. Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/00a86856c1195f3f653672d3b06aa9e4a4aeab82 Modified Files -- contrib/pageinspect/expected/page.out |

[COMMITTERS] pgsql: Don't convert Consts into Vars during setrefs.c processing.

2016-11-02 Thread Tom Lane
Don't convert Consts into Vars during setrefs.c processing. While converting expressions in an upper-level plan node so that they reference Vars and expressions provided by the input plan node(s), don't convert plain Const items, even if there happens to be a matching Const in the input. It's sil

[COMMITTERS] pgsql: Don't convert Consts into Vars during setrefs.c processing.

2016-11-02 Thread Tom Lane
Don't convert Consts into Vars during setrefs.c processing. While converting expressions in an upper-level plan node so that they reference Vars and expressions provided by the input plan node(s), don't convert plain Const items, even if there happens to be a matching Const in the input. It's sil

[COMMITTERS] pgsql: Don't make FK-based selectivity estimates in inheritance situati

2016-11-02 Thread Tom Lane
Don't make FK-based selectivity estimates in inheritance situations. The foreign-key-aware logic for estimation of join sizes (added in commit 100340e2d) blindly tried to apply the concept to rels that are actually parents of inheritance trees. This is just plain wrong so far as the referenced re

[COMMITTERS] pgsql: Don't make FK-based selectivity estimates in inheritance situati

2016-11-02 Thread Tom Lane
Don't make FK-based selectivity estimates in inheritance situations. The foreign-key-aware logic for estimation of join sizes (added in commit 100340e2d) blindly tried to apply the concept to rels that are actually parents of inheritance trees. This is just plain wrong so far as the referenced re