[Pgpool-general] function save_pending_data

Tatsuo Ishii ishii at sraoss.co.jp
Mon Jan 25 10:18:47 UTC 2010


> What for function save_pending_data in pool_stream.c ?.

pgpool always reads READBUFSZ bytes from socket for performance
reason. If caller of pool_read wants less than READBUFSZ and pool_read
reads more bytes than caller expetcs, data should be saved for later
use. That's the job for save_pending_data.
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese: http://www.sraoss.co.jp


More information about the Pgpool-general mailing list