pgsql: Test instrumentation of Hash nodes with parallel query.

2017-12-19 Thread Robert Haas
Test instrumentation of Hash nodes with parallel query. Commit 8526bcb2df76d5171b4f4d6dc7a97560a73a5eff fixed bugs related to both Sort and Hash, but only added a test case for Sort. This adds a test case for Hash to match. Thomas Munro Discussion: http://postgr.es/m/CAEepm=2-LRnfwUBZDqQt+XAcd

pgsql: Try again to fix accumulation of parallel worker instrumentation

2017-12-19 Thread Robert Haas
Try again to fix accumulation of parallel worker instrumentation. When a Gather or Gather Merge node is started and stopped multiple times, accumulate instrumentation data only once, at the end, instead of after each execution, to avoid recording inflated totals. Commit 778e78ae9fa51e58f41cbdc72b

pgsql: Try again to fix accumulation of parallel worker instrumentation

2017-12-19 Thread Robert Haas
Try again to fix accumulation of parallel worker instrumentation. When a Gather or Gather Merge node is started and stopped multiple times, accumulate instrumentation data only once, at the end, instead of after each execution, to avoid recording inflated totals. Commit 778e78ae9fa51e58f41cbdc72b

pgsql: Re-fix wrong costing of Sort under Gather Merge.

2017-12-19 Thread Robert Haas
Re-fix wrong costing of Sort under Gather Merge. Commit dc02c7bca4dccf7de278cdc6b3325a829e75b252 changed this call to create_sort_path() to take -1 rather than limit_tuples because, at that time, there was no way for a Sort beneath a Gather Merge to become a top-N sort. Later, commit 3452dc5240da

pgsql: Mark a few parallelism-related variables with PGDLLIMPORT.

2017-12-19 Thread Robert Haas
Mark a few parallelism-related variables with PGDLLIMPORT. Discussion: http://postgr.es/m/CAEepm=2HzxAOKU6eCWTyvMwBy=fhgvbwdpm_fvps759tkyq...@mail.gmail.com Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/09a65f5a284491d865f3f2ca5a996e597b9cf696 Modified Files ---

pgsql: Add libpq connection parameter "scram_channel_binding"

2017-12-19 Thread Peter Eisentraut
Add libpq connection parameter "scram_channel_binding" This parameter can be used to enforce the channel binding type used during a SCRAM authentication. This can be useful to check code paths where an invalid channel binding type is used by a client and will be even more useful to allow testing