pgsql: Reproduce debug_query_string==NULL on parallel workers. - Mailing list pgsql-committers

From Noah Misch
Subject pgsql: Reproduce debug_query_string==NULL on parallel workers.
Date
Msg-id E1kYtAl-0001RD-2T@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Reproduce debug_query_string==NULL on parallel workers.

Certain background workers initiate parallel queries while
debug_query_string==NULL, at which point they attempted strlen(NULL) and
died to SIGSEGV.  Older debug_query_string observers allow NULL, so do
likewise in these newer ones.  Back-patch to v11, where commit
7de4a1bcc56f494acbd0d6e70781df877dc8ecb5 introduced the first of these.

Discussion: https://postgr.es/m/20201014022636.GA1962668@rfd.leadboat.com

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/741b84e9f74726fbc97f63ddb46ab5675de98bdf

Modified Files
--------------
src/backend/access/nbtree/nbtsort.c | 25 +++++++++++++++++--------
1 file changed, 17 insertions(+), 8 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix assertion failure in check_new_partition_bound().
Next
From: Michael Paquier
Date:
Subject: pgsql: Add error code for encryption failure in pgcrypto