[pgpool-committers: 1022] pgpool: Fix unnecessary degeneration caused by error on commit.
Tatsuo Ishii
ishii at postgresql.org
Sun Jun 2 20:38:54 JST 2013
Fix unnecessary degeneration caused by error on commit.
A commit could fail by certain condition including deferred
triggers. If the trigger is related to DML, only the primary fails
because standbys never gets executed such DML in streaming replication
mode. This lead to "kind mismatch error", which causes failover or
session close. This is reported in bug #60, and the reporter claims
that it should not trigger the failover or the session close, rather
continue the session and just report the error on the primary. I think
his complain is fair since in replication mode, such error does not
cause failover or session close. So I make read_kind_from_backend() a
little smarter to not cause failover or session close if only primary
fails on commit in streaming replication mode.
Branch
------
master
Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=e7e350465a6f33562322304b56f02cdbb1492641
Modified Files
--------------
pool_process_query.c | 40 +++++++++++++++++++++++++++++++++++++++-
1 file changed, 39 insertions(+), 1 deletion(-)
More information about the pgpool-committers
mailing list