pgsql: Fix isolationtester race condition for notices sent before block

2019-07-27 Thread Tom Lane
Fix isolationtester race condition for notices sent before blocking. If a test sends a notice just before blocking, it's possible on slow machines for isolationtester to detect the blocked state before it's consumed the notice. (For this to happen, the notice would have to arrive after isolationt

pgsql: Don't drop NOTICE messages in isolation tests.

2019-07-27 Thread Tom Lane
Don't drop NOTICE messages in isolation tests. For its entire existence, isolationtester.c has forced client_min_messages to WARNING, but that seems like a very poor choice of test design. It should be up to individual test scripts to manage whether they emit notices and to ensure that the result

pgsql: Add support for --jobs in reindexdb

2019-07-27 Thread Michael Paquier
Add support for --jobs in reindexdb When doing a schema-level or a database-level operation, a list of relations to build is created which gets processed in parallel using multiple connections, based on the recent refactoring for parallel slots in src/bin/scripts/. System catalogs are processed f