Chris Browne cbbrowne at lists.slony.info
Fri Nov 20 11:36:45 PST 2009
Update of /home/cvsd/slony1/slony1-engine/src/slonik
In directory main.slony.info:/tmp/cvs-serv19176/slonik

Modified Files:
      Tag: REL_2_0_STABLE
	slonik.c 
Log Message:
Bug #95 - http://www.slony.info/bugzilla/show_bug.cgi?id=95

There are two calls to the postgres function subscribeSet_int(integer, integer,
integer, boolean, boolean) in slony1-engine/src/slonik/slonik.c

Both calls do not pass in the last boolean input (the new OMIT COPY parameter)
and hence you get errors.  We have only seen it when using slonik_store_node
but looking at the code it could also happen in slonik_failed_node.



Index: slonik.c
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/src/slonik/slonik.c,v
retrieving revision 1.91.2.7
retrieving revision 1.91.2.8
diff -C2 -d -r1.91.2.7 -r1.91.2.8
*** slonik.c	18 Nov 2009 16:57:23 -0000	1.91.2.7
--- slonik.c	20 Nov 2009 19:36:43 -0000	1.91.2.8
***************
*** 2810,2814 ****
  			slon_mkquery(&query,
  						 "select \"_%s\".storeListen(%d,%d,%d); "
! 						 "select \"_%s\".subscribeSet_int(%d,%d,%d,true); ",
  						 stmt->hdr.script->clustername,
  						 stmt->no_id, use_node, stmt->backup_node,
--- 2810,2814 ----
  			slon_mkquery(&query,
  						 "select \"_%s\".storeListen(%d,%d,%d); "
! 						 "select \"_%s\".subscribeSet_int(%d,%d,%d,'t','f'); ",
  						 stmt->hdr.script->clustername,
  						 stmt->no_id, use_node, stmt->backup_node,



More information about the Slony1-commit mailing list