When passing query strings to workers, pass the terminating \0.
Robert Haas <rhaas@postgresql.org>
When passing query strings to workers, pass the terminating \0. Otherwise, when the query string is read, we might trailing garbage beyond the end, unless there happens to be a \0 there by good luck. Report and patch by Thomas Munro. Reviewed by Rafia Sabih. Discussion: http://postgr.es/m/CAEepm=2SJs7X+_vx8QoDu8d1SMEOxtLhxxLNzZun_BvNkuNhrw@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/executor/execParallel.c | modified | +3 −3 |
Discussion
- Shouldn't execParallel.c null-terminate query_string in the parallel DSM? 3 messages · 2017-12-20