Fix "not enough space in buffer" error.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Wed, 17 Apr 2019 13:11:00 +0000 (22:11 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Wed, 17 Apr 2019 13:38:23 +0000 (22:38 +0900)
commitcd6525bdb6548a0275e59d3848bca7505c276848
tree917050c9695028433b10369f1c19b80abf5a3b29
parent97924bed5ecf2e4a2447feef1ea9d2456b4243c9
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.
src/protocol/pool_process_query.c