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

Поиск
Список
Период
Сортировка
От Robert Haas
Тема pgsql: When passing query strings to workers, pass the terminating \0.
Дата
Msg-id E1eRmuV-0000tj-KS@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: pgsql: Test instrumentation of Hash nodes with parallel query.
Следующее
От: Andres Freund
Дата:
Сообщение: pgsql: Add parallel-aware hash joins.