pgsql: Tests for Kerberos/GSSAPI authentication

2018-03-06 Thread Peter Eisentraut
Tests for Kerberos/GSSAPI authentication Like the LDAP and SSL tests, these are not run by default but can be selected via PG_TEST_EXTRA. Reviewed-by: Thomas Munro Reviewed-by: Michael Paquier Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/4c831aeaa7bd837c5462df

pgsql: Fix bogus Name assignment in CreateStatistics

2018-03-06 Thread Alvaro Herrera
Fix bogus Name assignment in CreateStatistics Apparently, it doesn't work to use a plain cstring as a Name datum: you may end up having random bytes because of failing to zero the bytes after the terminating \0, as indicated by valgrind. I introduced this bug in 5564c1181548, so backpatch this fi

pgsql: Fix bogus Name assignment in CreateStatistics

2018-03-06 Thread Alvaro Herrera
Fix bogus Name assignment in CreateStatistics Apparently, it doesn't work to use a plain cstring as a Name datum: you may end up having random bytes because of failing to zero the bytes after the terminating \0, as indicated by valgrind. I introduced this bug in 5564c1181548, so backpatch this fi

pgsql: Raise Test::More version requirement

2018-03-06 Thread Peter Eisentraut
Raise Test::More version requirement Since ed8a7c6fcf92b6b57ed8003bbd4a4eb92a6039bc, version 0.87 is required. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/f0ae2fa88bb97eaab2b6df7a0e7e503f392d3181 Modified Files -- src/test/perl/TestLib.pm | 4 ++-- 1

pgsql: Fix expected error message in test

2018-03-06 Thread Peter Eisentraut
Fix expected error message in test Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/286c0ab257f8dde8e5494426b86c38f3877ae5c2 Modified Files -- src/test/ssl/t/002_scram.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

pgsql: Refrain from duplicating data in reorderbuffers

2018-03-06 Thread Alvaro Herrera
Refrain from duplicating data in reorderbuffers If a walsender exits leaving data in reorderbuffers, the next walsender that tries to decode the same transaction would append its decoded data in the same spill files without truncating it first, which effectively duplicate the data. Avoid that by

pgsql: Refrain from duplicating data in reorderbuffers

2018-03-06 Thread Alvaro Herrera
Refrain from duplicating data in reorderbuffers If a walsender exits leaving data in reorderbuffers, the next walsender that tries to decode the same transaction would append its decoded data in the same spill files without truncating it first, which effectively duplicate the data. Avoid that by

pgsql: Refrain from duplicating data in reorderbuffers

2018-03-06 Thread Alvaro Herrera
Refrain from duplicating data in reorderbuffers If a walsender exits leaving data in reorderbuffers, the next walsender that tries to decode the same transaction would append its decoded data in the same spill files without truncating it first, which effectively duplicate the data. Avoid that by

pgsql: Refrain from duplicating data in reorderbuffers

2018-03-06 Thread Alvaro Herrera
Refrain from duplicating data in reorderbuffers If a walsender exits leaving data in reorderbuffers, the next walsender that tries to decode the same transaction would append its decoded data in the same spill files without truncating it first, which effectively duplicate the data. Avoid that by

pgsql: Refrain from duplicating data in reorderbuffers

2018-03-06 Thread Alvaro Herrera
Refrain from duplicating data in reorderbuffers If a walsender exits leaving data in reorderbuffers, the next walsender that tries to decode the same transaction would append its decoded data in the same spill files without truncating it first, which effectively duplicate the data. Avoid that by

pgsql: doc: Add replication parameter to libpq documentation

2018-03-06 Thread Peter Eisentraut
doc: Add replication parameter to libpq documentation Author: Michael Paquier Reported-by: Şahap Aşçı Reviewed-by: Vik Fearing Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/0c2c81b403db420bfce36f168887db72932dbf09 Modified Files -- doc/src/sgml/lib

pgsql: doc: Improve calculation of vm.nr_hugepages

2018-03-06 Thread Peter Eisentraut
doc: Improve calculation of vm.nr_hugepages The previous method worked off the full virtual address space, not just the shared memory usage. Author: Tsunakawa, Takayuki Reviewed-by: Justin Pryzby Reviewed-by: Vasundhar Boddapati Branch -- master Details --- https://git.postgresql.org

pgsql: Fix costing of parallel hash joins.

2018-03-06 Thread Peter Eisentraut
Fix costing of parallel hash joins. Commit 1804284042e659e7d16904e7bbb0ad546394b6a3 established that single-batch parallel-aware hash joins could create one large shared hash table using the combined work_mem budget of all participants. The costing accidentally assumed that parallel-oblivious has

pgsql: Fix typo for RangeVarGetRelidExtended

2018-03-06 Thread Stephen Frost
Fix typo for RangeVarGetRelidExtended The function is actually RangeVarGetRelidExtended, so the comment should reflect that. Author: Michael Paquier Discussion: https://postgr.es/m/[email protected] Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/06

pgsql: Fix test counting in SSL tests

2018-03-06 Thread Peter Eisentraut
Fix test counting in SSL tests The branch that does not support tls-server-end-point runs more tests, so we need to structure the test counting dynamically. Reviewed-by: Michael Paquier Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/2dadd061b3a8d259ec352512dfaf34