Tue Jun 5 15:22:09 PDT 2007
- Previous message: [Slony1-commit] slony1-engine/src/ducttape test_5_ddlscript test_5_pgbench.in
- Next message: [Slony1-commit] slony1-engine/src/slonik dbutil.c slonik.c slonik.h
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /home/cvsd/slony1/slony1-engine/src/slon In directory main.slony.info:/tmp/cvs-serv6954/src/slon Modified Files: remote_worker.c Log Message: Fix EXECUTE SCRIPT so that it records the ev_seqno for WAIT FOR EVENT and make sure all DDL is executed in session_replication_role "local" on the origin as well as all subscribers. This will cause the slony triggers to ignore all DML statements while user triggers follow the regular configuration options for ENABLE [REPLICA/ALWAYS] or DISABLE. TODO: Put the correct session_replication_role setting into archive logs as well. Jan Index: remote_worker.c =================================================================== RCS file: /home/cvsd/slony1/slony1-engine/src/slon/remote_worker.c,v retrieving revision 1.140 retrieving revision 1.141 diff -C2 -d -r1.140 -r1.141 *** remote_worker.c 31 May 2007 16:46:18 -0000 1.140 --- remote_worker.c 5 Jun 2007 22:22:07 -0000 1.141 *************** *** 1315,1318 **** --- 1315,1319 ---- slon_appendquery(&query1, + "set session_replication_role to local; " "select %s.ddlScript_prepare_int(%d, %d); ", rtcfg_namespace, *************** *** 1371,1375 **** } ! (void) slon_mkquery(&query1, "select %s.ddlScript_complete_int(%d, %d); ", rtcfg_namespace, ddl_setid, --- 1372,1378 ---- } ! (void) slon_mkquery(&query1, ! "select %s.ddlScript_complete_int(%d, %d); " ! "set session_replication_role to replica; ", rtcfg_namespace, ddl_setid,
- Previous message: [Slony1-commit] slony1-engine/src/ducttape test_5_ddlscript test_5_pgbench.in
- Next message: [Slony1-commit] slony1-engine/src/slonik dbutil.c slonik.c slonik.h
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list