pgsql: When passing query strings to workers, pass the terminating \0. - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: When passing query strings to workers, pass the terminating \0.
Date
Msg-id E1eRmuV-0000tj-KS@gemulon.postgresql.org
Whole thread Raw
List 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 by date:

Previous
From: Robert Haas
Date:
Subject: pgsql: Test instrumentation of Hash nodes with parallel query.
Next
From: Andres Freund
Date:
Subject: pgsql: Add parallel-aware hash joins.