Chris Browne cbbrowne at lists.slony.info
Fri Apr 11 08:08:21 PDT 2008
Update of /home/cvsd/slony1/slony1-engine/src/backend
In directory main.slony.info:/tmp/cvs-serv14054

Modified Files:
	slony1_funcs.sql 
Log Message:
Change cleanupEvent() to actually use the interval passed in (e.g. -
p_interval) as the basis for what old data to purge, rather than the
hard-coded '10 minute' interval.


Index: slony1_funcs.sql
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/src/backend/slony1_funcs.sql,v
retrieving revision 1.134
retrieving revision 1.135
diff -C2 -d -r1.134 -r1.135
*** slony1_funcs.sql	28 Feb 2008 19:38:58 -0000	1.134
--- slony1_funcs.sql	11 Apr 2008 15:08:19 -0000	1.135
***************
*** 4534,4538 ****
  	for v_max_row in select con_origin, con_received, max(con_seqno) as con_seqno
  				from @NAMESPACE at .sl_confirm
! 				where con_timestamp < (CURRENT_TIMESTAMP - ''10 min''::interval)
  				group by con_origin, con_received
  	loop
--- 4534,4538 ----
  	for v_max_row in select con_origin, con_received, max(con_seqno) as con_seqno
  				from @NAMESPACE at .sl_confirm
! 				where con_timestamp < (CURRENT_TIMESTAMP - p_interval)
  				group by con_origin, con_received
  	loop



More information about the Slony1-commit mailing list