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

Tatsuo Ishii ishii at sraoss.co.jp
Wed Apr 17 22:42:54 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
------
V3_6_STABLE

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

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



More information about the pgpool-committers mailing list