]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Reproduce debug_query_string==NULL on parallel workers.
authorNoah Misch <noah@leadboat.com>
Sat, 31 Oct 2020 15:43:28 +0000 (08:43 -0700)
committerNoah Misch <noah@leadboat.com>
Sat, 31 Oct 2020 15:45:19 +0000 (08:45 -0700)
commit0454666758209de2bdd96d5f0b9cf7aa055e4bda
tree16dd6e6568dacbbb58efc7969a14a05a997520e3
parent24d769b905419992f137e9de37cd05ab8c348b12
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
src/backend/access/nbtree/nbtsort.c