[pgpool-committers: 551] pgpool: If frontend terminates while reading large number of query resu

Tatsuo Ishii ishii at postgresql.org
Mon Jul 30 10:10:18 JST 2012

If frontend terminates while reading large number of query results
from backend, pgpool continues to read from backend and write to
frontend until all query results consumued. This will take very long
time if query results is huge. To finish pgpool session as soon as
possible, modify pool_flush_it to returns error if fail to write to
frontend when operated in other than replication mode. In replication
mode, we need to keep the previous behavior to save consistency among
backends(maybe this is not true anymore, since all write queres are
executed in a transaction in replication mode?).

Also fix SimpleForwardToFrontend to return pool_write_and_flush
error status. Before it was ignored.



Modified Files
pool_process_query.c |    6 +++++-
pool_stream.c        |   10 +++++++---
2 files changed, 12 insertions(+), 4 deletions(-)

More information about the pgpool-committers mailing list