Shouldn't execParallel.c null-terminate query_string in the parallel DSM? - Mailing list pgsql-hackers

From Thomas Munro
Subject Shouldn't execParallel.c null-terminate query_string in the parallel DSM?
Date
Msg-id CAEepm=2SJs7X+_vx8QoDu8d1SMEOxtLhxxLNzZun_BvNkuNhrw@mail.gmail.com
Whole thread Raw
Responses Re: Shouldn't execParallel.c null-terminate query_string in theparallel DSM?
List pgsql-hackers
Hi hackers,

I just saw some trailing garbage in my log file emanating from a
parallel worker when my query happened to be a BUFFERALIGNed length
(in this case 64 characters).  Did commit 4c728f382970 forget to make
sure the null terminator is copied?  See attached proposed fix.

-- 
Thomas Munro
http://www.enterprisedb.com

Attachment

pgsql-hackers by date:

Previous
From: Amit Langote
Date:
Subject: Re: Boolean partitions syntax
Next
From: Mark Dilger
Date:
Subject: Re: WIP: BRIN multi-range indexes