pgsql: Fix multiple problems with satisfies_hash_partition.

2017-11-21 Thread Robert Haas
Fix multiple problems with satisfies_hash_partition. Fix the function header comment to describe the actual behavior. Check that table OID, modulus, and remainder arguments are not NULL before accessing them. Check that the modulus and remainder are sensible. If the table OID doesn't exist, retu

pgsql: Provide for forward compatibility with future minor protocol ver

2017-11-21 Thread Robert Haas
Provide for forward compatibility with future minor protocol versions. Previously, any attempt to request a 3.x protocol version other than 3.0 would lead to a hard connection failure, which made the minor protocol version really no different from the major protocol version and precluded gentle pr

pgsql: Provide for forward compatibility with future minor protocol ver

2017-11-21 Thread Robert Haas
Provide for forward compatibility with future minor protocol versions. Previously, any attempt to request a 3.x protocol version other than 3.0 would lead to a hard connection failure, which made the minor protocol version really no different from the major protocol version and precluded gentle pr

pgsql: Provide for forward compatibility with future minor protocol ver

2017-11-21 Thread Robert Haas
Provide for forward compatibility with future minor protocol versions. Previously, any attempt to request a 3.x protocol version other than 3.0 would lead to a hard connection failure, which made the minor protocol version really no different from the major protocol version and precluded gentle pr

pgsql: Provide for forward compatibility with future minor protocol ver

2017-11-21 Thread Robert Haas
Provide for forward compatibility with future minor protocol versions. Previously, any attempt to request a 3.x protocol version other than 3.0 would lead to a hard connection failure, which made the minor protocol version really no different from the major protocol version and precluded gentle pr

pgsql: Provide for forward compatibility with future minor protocol ver

2017-11-21 Thread Robert Haas
Provide for forward compatibility with future minor protocol versions. Previously, any attempt to request a 3.x protocol version other than 3.0 would lead to a hard connection failure, which made the minor protocol version really no different from the major protocol version and precluded gentle pr

pgsql: Provide for forward compatibility with future minor protocol ver

2017-11-21 Thread Robert Haas
Provide for forward compatibility with future minor protocol versions. Previously, any attempt to request a 3.x protocol version other than 3.0 would lead to a hard connection failure, which made the minor protocol version really no different from the major protocol version and precluded gentle pr

pgsql: pgbench: fix stats reporting when some transactions are skipped.

2017-11-21 Thread Tom Lane
pgbench: fix stats reporting when some transactions are skipped. pgbench can skip some transactions when both -R and -L options are used. Previously, this resulted in slightly silly statistics both in progress reports and final output, because the skipped transactions were counted as executed for

pgsql: Doc: fix broken markup.

2017-11-21 Thread Tom Lane
Doc: fix broken markup. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/41761265e88f09fba4028352b8e2be82d049cedc Modified Files -- doc/src/sgml/ref/create_table.sgml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [HACKERS] [COMMITTERS] pgsql: Fix freezing of a dead HOT-updated tuple

2017-11-21 Thread Michael Paquier
On Tue, Nov 21, 2017 at 4:18 AM, Andres Freund wrote: > On 2017-11-13 19:03:41 -0800, Andres Freund wrote: >> On 2017-11-03 07:53:30 -0700, Andres Freund wrote: >> > Here's that patch. I've stared at this some, and Robert did too. Robert >> > mentioned that the commit message might need some poli

pgsql: Set es_output_cid in replication worker

2017-11-21 Thread Simon Riggs
Set es_output_cid in replication worker Allows triggers to operate correctly Author: Petr Jelinek Reported-by: Konstantin Knizhnik Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/7e17a6889a4441c2cebca2dd47f4170ff8dc5de2 Modified Files -- src/backend/