pgsql: pg_basebackup: Fix progress messages when writing to a file

2017-12-01 Thread Peter Eisentraut
pg_basebackup: Fix progress messages when writing to a file The progress messages print out \r to keep overwriting the same line on the screen. But this does not yield useful results when writing the output to a file. So in that case, print out \n instead. Author: Martín Marqués Reviewed-by: A

pgsql: Check channel binding flag at end of SCRAM exchange

2017-12-01 Thread Peter Eisentraut
Check channel binding flag at end of SCRAM exchange We need to check whether the channel-binding flag encoded in the client-final-message is the same one sent in the client-first-message. Reviewed-by: Michael Paquier Branch -- master Details --- https://git.postgresql.org/pg/commitdiff

pgsql: Fix uninitialized memory reference.

2017-12-01 Thread Robert Haas
Fix uninitialized memory reference. Without this, when partdesc->nparts == 0, we end up calling ExecBuildSlotPartitionKeyDescription without initializing values and isnull. Reported by Coverity via Michael Paquier. Patch by Michael Paquier, reviewed and revised by Amit Langote. Discussion: htt

pgsql: Try to exclude partitioned tables in toto.

2017-12-01 Thread Robert Haas
Try to exclude partitioned tables in toto. Ashutosh Bapat, reviewed by Jeevan Chalke. Comment by me. Discussion: http://postgr.es/m/CAFjFpRcuRaydz88CY_aQekmuvmN2A9ax5z0k=ppt+s8ks8x...@mail.gmail.com Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/1cbc17aaca82b2e2

pgsql: Re-allow INSERT .. ON CONFLICT DO NOTHING on partitioned tables.

2017-12-01 Thread Robert Haas
Re-allow INSERT .. ON CONFLICT DO NOTHING on partitioned tables. Commit 8355a011a0124bdf7ccbada206a967d427039553 was reverted in f05230752d53c4aa74cffa9b699983bbb6bcb118, but this attempt is hopefully better-considered: we now pass the correct value to ExecOpenIndices, which should avoid the crash

pgsql: postgres_fdw: Fix test that didn't test what it claimed.

2017-12-01 Thread Robert Haas
postgres_fdw: Fix test that didn't test what it claimed. Antonin Houska reported that the planner does consider pushing postgres_fdw_abs() to the remote side, which happens because we make it shippable earlier in the test case file. Jeevan Chalke provided this patch, which changes the join condit

pgsql: Minor code beautification in partition_bounds_equal.

2017-12-01 Thread Robert Haas
Minor code beautification in partition_bounds_equal. Use get_greatest_modulus more consistently, instead of doing the same thing in an ad-hoc manner in this one place. Ashutosh Bapat Discussion: http://postgr.es/m/CAFjFpReT9L4RCiJBKOyWC2=i02kv9uG2fx=4fv7kfy2t0sp...@mail.gmail.com Branch --

pgsql: Add infrastructure for sharing temporary files between backends.

2017-12-01 Thread Andres Freund
Add infrastructure for sharing temporary files between backends. SharedFileSet allows temporary files to be created by one backend and then exported for read-only access by other backends, with clean-up managed by reference counting associated with a DSM segment. This includes changes to fd.c and

pgsql: Adjust #ifdef EXEC_BACKEND RemovePgTempFilesInDir() call.

2017-12-01 Thread Andres Freund
Adjust #ifdef EXEC_BACKEND RemovePgTempFilesInDir() call. Other callers were adjusted in the course of dc6c4c9dc2a111519b76b22dc86c5608223b. Per buildfarm. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/ec6a04005618c206163761e5739a8b90debd6b1e Modified Files