[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.



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

More information about the pgpool-committers mailing list