[pgpool-committers: 5667] pgpool: Fix "not enough space in buffer" error.

Tatsuo Ishii ishii at sraoss.co.jp
Wed Apr 17 22:43:08 JST 2019


Fix "not enough space in buffer" error.

The error occurred while processing error message returned from
backend and the cause is that the query string in question is too
big. Problem is, the buffer is in fixed size (8192 bytes). From the
programming point of view there's absolutely no need to use fixed size
buffer. So eliminate the fixed size buffer and use palloced buffer
instead. This also saves some memory copy work.

Per bug 499.

Branch
------
V4_0_STABLE

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=51131a2132b52f1030917f108b8e3e60d3a4009f

Modified Files
--------------
src/protocol/pool_process_query.c | 55 ++++++++++++++-------------------------
1 file changed, 19 insertions(+), 36 deletions(-)



More information about the pgpool-committers mailing list