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

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: When passing query strings to workers, pass the terminating \0.
Date: 2017-12-20 22:32:23
Message-ID: E1eRmuV-0000tk-KV@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/7be0d775a2e78d052c00f154741e9d8d76166fa3

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

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2017-12-21 08:49:46 pgsql: Add parallel-aware hash joins.
Previous Message Robert Haas 2017-12-19 20:30:05 pgsql: Test instrumentation of Hash nodes with parallel query.