Reproduce debug_query_string==NULL on parallel workers.
Noah Misch <noah@leadboat.com>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/heap/vacuumlazy.c | modified | +19 −9 |
| src/backend/access/nbtree/nbtsort.c | modified | +17 −8 |
Discussion
- pgstat_report_activity() and parallel CREATE INDEX (was: Parallel index creation & pg_stat_activity) 10 messages · 2018-03-01 → 2020-10-25