Tue Dec 5 10:04:46 PST 2006
- Previous message: [Slony1-commit] By cbbrowne: Added release note items for patches up to 2006-12-05
- Next message: [Slony1-commit] By cbbrowne: Bug #1585 - indexes not being shut off when TRUNCATE fails
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Log Message:
-----------
Bug #1585 - indexes not being shut off when TRUNCATE fails
- Redo the "shutting off of indexes" in the exception block
Tags:
----
REL_1_2_STABLE
Modified Files:
--------------
slony1-engine/src/backend:
slony1_funcs.v80.sql (r1.2 -> r1.2.2.1)
-------------- next part --------------
Index: slony1_funcs.v80.sql
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/src/backend/slony1_funcs.v80.sql,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -Lsrc/backend/slony1_funcs.v80.sql -Lsrc/backend/slony1_funcs.v80.sql -u -w -r1.2 -r1.2.2.1
--- src/backend/slony1_funcs.v80.sql
+++ src/backend/slony1_funcs.v80.sql
@@ -24,7 +24,7 @@
v_tab_fqname text;
begin
-- ----
- -- Get the tables OID and fully qualified name
+ -- Get the OID and fully qualified name for the table
-- ---
select PGC.oid,
@NAMESPACE at .slon_quote_brute(PGN.nspname) || ''.'' ||
@@ -56,6 +56,7 @@
return 1;
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;
end;
- Previous message: [Slony1-commit] By cbbrowne: Added release note items for patches up to 2006-12-05
- Next message: [Slony1-commit] By cbbrowne: Bug #1585 - indexes not being shut off when TRUNCATE fails
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list