[Pgpool-committers] pgpool - pgpool-II: Add raise_intentional_error_if_need function and

User Kitagawa kitagawa at pgfoundry.org
Fri Aug 6 13:17:24 UTC 2010


Log Message:
-----------
Add raise_intentional_error_if_need function and failed_transaction
valiable, to resolve following transaction issue in load_balance_mode.
Now, SELECT is sent to master node when error occurred 
in master_slave_mode and load_balance_mode.

example of atomicity issue:

testdb=> BEGIN;
BEGIN
testdb=> SELECT * FROM t1;
ERROR:  relation "t1" does not exist
LINE 1: SELECT * FROM t1;
                      ^
testdb=> SELECT * FROM t2;
 id
----
(0 rows)

testdb=> COMMIT;
ROLLBACK

Modified Files:
--------------
    pgpool-II:
        pool_proto2.c (r1.2 -> r1.3)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgpool/pgpool-II/pool_proto2.c?r1=1.2&r2=1.3)
        pool_proto_modules.c (r1.74 -> r1.75)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgpool/pgpool-II/pool_proto_modules.c?r1=1.74&r2=1.75)
        pool_proto_modules.h (r1.17 -> r1.18)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgpool/pgpool-II/pool_proto_modules.h?r1=1.17&r2=1.18)
        pool_query_context.c (r1.26 -> r1.27)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgpool/pgpool-II/pool_query_context.c?r1=1.26&r2=1.27)
        pool_session_context.c (r1.20 -> r1.21)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgpool/pgpool-II/pool_session_context.c?r1=1.20&r2=1.21)
        pool_session_context.h (r1.15 -> r1.16)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgpool/pgpool-II/pool_session_context.h?r1=1.15&r2=1.16)


More information about the Pgpool-committers mailing list