Steve Singer,,, ssinger at lists.slony.info
Thu May 13 12:34:34 PDT 2010
Update of /home/cvsd/slony1/slony1-engine/src/backend
In directory main.slony.info:/tmp/cvs-serv30348/src/backend

Modified Files:
      Tag: REL_2_0_STABLE
	slony1_funcs.sql 
Log Message:
Bug # 119

cloneNodeFinish() called updateRelOid() that was looking at tab_id in
sl_sequence but the column is named seq_id

Report/patch from Chirag Dave (cdave at ca.afilias.info)



Index: slony1_funcs.sql
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/src/backend/slony1_funcs.sql,v
retrieving revision 1.145.2.26
retrieving revision 1.145.2.27
diff -C 2 -d -r1.145.2.26 -r1.145.2.27
*** slony1_funcs.sql	6 Apr 2010 20:06:27 -0000	1.145.2.26
--- slony1_funcs.sql	13 May 2010 19:34:31 -0000	1.145.2.27
***************
*** 5130,5134 ****
  	for prec in select seq_id from @NAMESPACE at .sl_sequence loop
  		update @NAMESPACE at .sl_sequence set seq_reloid = (select oid from pg_class pc where relkind <> 'S' and not exists (select 1 from @NAMESPACE at .sl_sequence t2 where t2.seq_reloid = pc.oid) limit 1)
! 		where tab_id = prec.seq_id;
  	end loop;
  
--- 5130,5134 ----
  	for prec in select seq_id from @NAMESPACE at .sl_sequence loop
  		update @NAMESPACE at .sl_sequence set seq_reloid = (select oid from pg_class pc where relkind <> 'S' and not exists (select 1 from @NAMESPACE at .sl_sequence t2 where t2.seq_reloid = pc.oid) limit 1)
! 		where seq_id = prec.seq_id;
  	end loop;
  



More information about the Slony1-commit mailing list