Chris Browne cbbrowne at lists.slony.info
Thu Feb 8 14:57:30 PST 2007
Update of /home/cvsd/slony1/slony1-engine/src/backend
In directory main:/tmp/cvs-serv10697/src/backend

Modified Files:
      Tag: REL_1_2_STABLE
	slony1_funcs.v80.sql 
Log Message:
Make sure that in 8.0, we deactivate indices if we fall back to DELETE
rather than TRUNCATE at time of COPY SET


Index: slony1_funcs.v80.sql
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/src/backend/slony1_funcs.v80.sql,v
retrieving revision 1.2.2.2
retrieving revision 1.2.2.3
diff -C2 -d -r1.2.2.2 -r1.2.2.3
*** slony1_funcs.v80.sql	8 Feb 2007 22:55:58 -0000	1.2.2.2
--- slony1_funcs.v80.sql	8 Feb 2007 22:57:28 -0000	1.2.2.3
***************
*** 57,60 ****
--- 57,61 ----
  	exception when others then
  		raise notice ''truncate of % failed - doing delete'', v_tab_fqname;
+ 	update pg_class set relhasindex = ''f'' where oid = v_tab_oid;
  		execute ''delete from only '' || @NAMESPACE at .slon_quote_input(v_tab_fqname);
  		return 0;




More information about the Slony1-commit mailing list