Обсуждение: pgsql: When passing query strings to workers, pass the terminating \0.

Поиск
Список
Период
Сортировка

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

От
Robert Haas
Дата:
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f94eec490b2671399c102b89c9fa0311aea3a39f

Modified Files
--------------
src/backend/executor/execParallel.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)