When passing query strings to workers, pass the terminating \0.

Robert Haas <rhaas@postgresql.org>

Commit: 7be0d775a2e78d052c00f154741e9d8d76166fa3
Author: Robert Haas <rhaas@postgresql.org>
Date: 2017-12-20T22:27:25Z
Releases: 10.2
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

PathChange+/−
src/backend/executor/execParallel.c modified +3 −3

Discussion