pgsql: Reproduce debug_query_string==NULL on parallel workers.

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Reproduce debug_query_string==NULL on parallel workers.
Date: 2020-10-31 15:52:07
Message-ID: E1kYtAl-0001R7-1N@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f90e80b9138355a51d2d5b5b63e1f89c4ba53325

Modified Files
--------------
src/backend/access/heap/vacuumlazy.c | 28 +++++++++++++++++++---------
src/backend/access/nbtree/nbtsort.c | 25 +++++++++++++++++--------
2 files changed, 36 insertions(+), 17 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2020-11-01 10:23:34 pgsql: Add error code for encryption failure in pgcrypto
Previous Message Tom Lane 2020-10-30 21:01:06 pgsql: Fix assertion failure in check_new_partition_bound().