Chris Browne cbbrowne at lists.slony.info
Wed Feb 13 10:40:31 PST 2008
Update of /home/cvsd/slony1/slony1-engine/src/backend
In directory main.slony.info:/tmp/cvs-serv22905

Modified Files:
	slony1_funcs.sql 
Log Message:
change conditional in logswitch function to fold it into IF statement, and
eliminate the need to hide a SELECT.


Index: slony1_funcs.sql
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/src/backend/slony1_funcs.sql,v
retrieving revision 1.129
retrieving revision 1.130
diff -C2 -d -r1.129 -r1.130
*** slony1_funcs.sql	29 Jan 2008 15:57:17 -0000	1.129
--- slony1_funcs.sql	13 Feb 2008 18:40:29 -0000	1.130
***************
*** 5305,5310 ****
  	          where (ev_origin, ev_seqno) in (select ev_origin, min(ev_seqno) from @NAMESPACE at .sl_event where ev_type = ''SYNC'' group by ev_origin)
  		loop
! 			select 1 from @NAMESPACE at .sl_log_1 where log_origin = v_origin and log_txid < v_xmin limit 1;		
! 			if exists then
  				v_purgeable := ''false'';
  			end if;
--- 5305,5309 ----
  	          where (ev_origin, ev_seqno) in (select ev_origin, min(ev_seqno) from @NAMESPACE at .sl_event where ev_type = ''SYNC'' group by ev_origin)
  		loop
! 			if exists select 1 from @NAMESPACE at .sl_log_1 where log_origin = v_origin and log_txid < v_xmin limit 1 then
  				v_purgeable := ''false'';
  			end if;



More information about the Slony1-commit mailing list