pgsql: Reorder C includes

2018-01-17 Thread Bruce Momjian
Reorder C includes Reorder header files in joinrels.c and pathnode.c in alphabetical order, removing unnecessary ones. Author: Etsuro Fujita Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/f033462d8f77c40b7d6b33c5116e50118fb4699d Modified Files -- src/

pgsql: postgres_fdw: Avoid 'outer pathkeys do not match mergeclauses' e

2018-01-17 Thread Robert Haas
postgres_fdw: Avoid 'outer pathkeys do not match mergeclauses' error. When pushing down a join to a foreign server, postgres_fdw constructs an alternative plan to be used for any EvalPlanQual rechecks that prove to be necessary. This plan is stored as the outer subplan of the Foreign Scan impleme

pgsql: postgres_fdw: Avoid 'outer pathkeys do not match mergeclauses' e

2018-01-17 Thread Robert Haas
postgres_fdw: Avoid 'outer pathkeys do not match mergeclauses' error. When pushing down a join to a foreign server, postgres_fdw constructs an alternative plan to be used for any EvalPlanQual rechecks that prove to be necessary. This plan is stored as the outer subplan of the Foreign Scan impleme

pgsql: postgres_fdw: Avoid 'outer pathkeys do not match mergeclauses' e

2018-01-17 Thread Robert Haas
postgres_fdw: Avoid 'outer pathkeys do not match mergeclauses' error. When pushing down a join to a foreign server, postgres_fdw constructs an alternative plan to be used for any EvalPlanQual rechecks that prove to be necessary. This plan is stored as the outer subplan of the Foreign Scan impleme

pgsql: Remove useless lookup of root partitioned rel in ExecInitModifyT

2018-01-17 Thread Tom Lane
Remove useless lookup of root partitioned rel in ExecInitModifyTable(). node->partitioned_rels is only set in UPDATE/DELETE cases, but ExecInitModifyTable only uses its "rel" variable in INSERT cases, so the extra logic to find the root rel is just a waste of complexity and cycles. Etsuro Fujita,

pgsql: Ability to advance replication slots

2018-01-17 Thread Simon Riggs
Ability to advance replication slots Ability to advance both physical and logical replication slots using a new user function pg_replication_slot_advance(). For logical advance that means records are consumed as fast as possible and changes are not given to output plugin for sending. Makes 2nd ph

Re: pgsql: Centralize json and jsonb handling of datetime types

2018-01-17 Thread Amit Langote
On Wed, Jan 17, 2018 at 5:34 PM, Andrew Dunstan wrote: > > > On 01/17/2018 12:34 AM, Amit Langote wrote: >> On Wed, Jan 17, 2018 at 9:29 AM, Andrew Dunstan wrote: >>> Centralize json and jsonb handling of datetime types >> [ ... ] >> >>> src/include/utils/date.h | 4 +- >> I noticed that th

Re: pgsql: Centralize json and jsonb handling of datetime types

2018-01-17 Thread Andrew Dunstan
On 01/17/2018 12:34 AM, Amit Langote wrote: > On Wed, Jan 17, 2018 at 9:29 AM, Andrew Dunstan wrote: >> Centralize json and jsonb handling of datetime types > [ ... ] > >> src/include/utils/date.h | 4 +- > I noticed that these changes cause the following warning to be emitted > when compi

pgsql: Fix compiler warnings due to commit cc4feded

2018-01-17 Thread Andrew Dunstan
Fix compiler warnings due to commit cc4feded Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/585e166e46a1572b59eb9fdaffc2d4b785000f9e Modified Files -- src/include/utils/date.h | 1 + 1 file changed, 1 insertion(+)