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

Tatsuo Ishii ishii at sraoss.co.jp
Wed Apr 17 22:43:01 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_7_STABLE

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

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



More information about the pgpool-committers mailing list