pgsql: Add %P to log_line_prefix for parallel group leader

2020-08-02 Thread Michael Paquier
Add %P to log_line_prefix for parallel group leader This is useful for monitoring purposes with log parsing. Similarly to pg_stat_activity, the leader's PID is shown only for active parallel workers, minimizing the log footprint for the leaders as the equivalent shared memory field is set as long

Re: pgsql: Adjust pgcrypto's expected test results for --disable-strong-ran

2020-08-02 Thread Michael Paquier
On Sun, Aug 02, 2020 at 03:00:21PM +, Tom Lane wrote: > Adjust pgcrypto's expected test results for --disable-strong-random. > > These files were missed when commit a3ab7a707 added a new test query. > Understandable considering these files no longer exist in HEAD. > Per buildfarm member pademe

pgsql: Fix rare failure in LDAP tests.

2020-08-02 Thread Thomas Munro
Fix rare failure in LDAP tests. Instead of writing a query to psql's stdin, use -c. This avoids a failure where psql exits before we write, seen a few times on the build farm. Thanks to Tom Lane for the suggestion. Back-patch to 11, where the LDAP tests arrived. Reviewed-by: Noah Misch Discus

pgsql: Fix rare failure in LDAP tests.

2020-08-02 Thread Thomas Munro
Fix rare failure in LDAP tests. Instead of writing a query to psql's stdin, use -c. This avoids a failure where psql exits before we write, seen a few times on the build farm. Thanks to Tom Lane for the suggestion. Back-patch to 11, where the LDAP tests arrived. Reviewed-by: Noah Misch Discus

pgsql: Fix rare failure in LDAP tests.

2020-08-02 Thread Thomas Munro
Fix rare failure in LDAP tests. Instead of writing a query to psql's stdin, use -c. This avoids a failure where psql exits before we write, seen a few times on the build farm. Thanks to Tom Lane for the suggestion. Back-patch to 11, where the LDAP tests arrived. Reviewed-by: Noah Misch Discus

pgsql: Fix rare failure in LDAP tests.

2020-08-02 Thread Thomas Munro
Fix rare failure in LDAP tests. Instead of writing a query to psql's stdin, use -c. This avoids a failure where psql exits before we write, seen a few times on the build farm. Thanks to Tom Lane for the suggestion. Back-patch to 11, where the LDAP tests arrived. Reviewed-by: Noah Misch Discus

pgsql: Correct comment in simplehash.h.

2020-08-02 Thread Thomas Munro
Correct comment in simplehash.h. Post-commit review for commit 84c0e4b9. Author: David Rowley Discussion: https://postgr.es/m/CAApHDvptBx_%2BUPAzY0uXzopbvPVGKPeZ6Hoy8rnPcWz20Cr0Bw%40mail.gmail.com Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/63e9aa6879cc5b87c7

pgsql: Fix minor issues in psql's new \dAc and related commands.

2020-08-02 Thread Tom Lane
Fix minor issues in psql's new \dAc and related commands. The type-name pattern in \dAc and \dAf was matched only to the actual pg_type.typname string, which is fairly user-unfriendly in cases where that is not what's shown to the user by format_type (compare "_int4" and "integer[]"). Make this c

pgsql: Fix minor issues in psql's new \dAc and related commands.

2020-08-02 Thread Tom Lane
Fix minor issues in psql's new \dAc and related commands. The type-name pattern in \dAc and \dAf was matched only to the actual pg_type.typname string, which is fairly user-unfriendly in cases where that is not what's shown to the user by format_type (compare "_int4" and "integer[]"). Make this c

pgsql: Adjust pgcrypto's expected test results for --disable-strong-ran

2020-08-02 Thread Tom Lane
Adjust pgcrypto's expected test results for --disable-strong-random. These files were missed when commit a3ab7a707 added a new test query. Understandable considering these files no longer exist in HEAD. Per buildfarm member pademelon. Branch -- REL_11_STABLE Details --- https://git.postg

pgsql: Adjust pgcrypto's expected test results for --disable-strong-ran

2020-08-02 Thread Tom Lane
Adjust pgcrypto's expected test results for --disable-strong-random. These files were missed when commit a3ab7a707 added a new test query. Understandable considering these files no longer exist in HEAD. Per buildfarm member pademelon. Branch -- REL_10_STABLE Details --- https://git.postg