Fix bug with load balance in replication mode.
authorTatsuo Ishii <ishii@postgresql.org>
Sat, 17 Aug 2013 01:21:32 +0000 (10:21 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Sat, 17 Aug 2013 01:21:32 +0000 (10:21 +0900)
commit1ac45a28258074ea4d9d902aca016f970d31f311
tree8f7de2e1c668250c383be20648fbbc6f512d48b7
parent61bd55a60ea0a82a60daee90493921a4a6273c5b
Fix bug with load balance in replication mode.

When load_balance_mode is off in replication mode, SELECT's should be
sent to master node only, rather than sent to all nodes in an
explicit transaction. Also add regression test case for this. Problem
reported in [pgpool-general: 2038].
pool_query_context.c
test/regression/tests/001.load_balance/test.sh