pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Reproduce debug_query_string==NULL on parallel workers.
Date: Sat, 31 Oct 2020 15:52:07 +0000
Message-ID: <E1kYtAl-0001RB-28@gemulon.postgresql.org> (raw)

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_13_STABLE

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

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



view thread (4+ messages)  latest in thread

Message-ID: <E1kYtAl-0001RB-28@gemulon.postgresql.org>
Permalink:  ../E1kYtAl-0001RB-28@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1kYtAl-0001RB-28@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: noah@leadboat.com
  Subject: Re: pgsql: Reproduce debug_query_string==NULL on parallel workers.
  In-Reply-To: <E1kYtAl-0001RB-28@gemulon.postgresql.org>
  References: <E1kYtAl-0001RB-28@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox