Wed Oct 6 18:37:29 PDT 2004
- Previous message: [Slony1-commit] By wieck: Bugfix: The Slony1 log trigger assumed that if
- Next message: [Slony1-commit] By wieck: Truncate cannot be used if table is referenced by any FK.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Log Message:
-----------
Truncate cannot be used if table is referenced by any FK. So
use DELETE again for now.
Jan
Tags:
----
REL_1_0_STABLE
Modified Files:
--------------
slony1-engine/src/backend:
slony1_funcs.v73.sql (r1.4.2.2 -> r1.4.2.3)
slony1_funcs.v74.sql (r1.2.2.1 -> r1.2.2.2)
-------------- next part --------------
Index: slony1_funcs.v74.sql
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/src/backend/slony1_funcs.v74.sql,v
retrieving revision 1.2.2.1
retrieving revision 1.2.2.2
diff -Lsrc/backend/slony1_funcs.v74.sql -Lsrc/backend/slony1_funcs.v74.sql -u -w -r1.2.2.1 -r1.2.2.2
--- src/backend/slony1_funcs.v74.sql
+++ src/backend/slony1_funcs.v74.sql
@@ -21,7 +21,7 @@
declare
p_tab_fqname alias for $1;
begin
- execute ''truncate '' || p_tab_fqname;
+ execute ''delete from only '' || p_tab_fqname;
return 1;
end;
' language plpgsql;
Index: slony1_funcs.v73.sql
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/src/backend/slony1_funcs.v73.sql,v
retrieving revision 1.4.2.2
retrieving revision 1.4.2.3
diff -Lsrc/backend/slony1_funcs.v73.sql -Lsrc/backend/slony1_funcs.v73.sql -u -w -r1.4.2.2 -r1.4.2.3
--- src/backend/slony1_funcs.v73.sql
+++ src/backend/slony1_funcs.v73.sql
@@ -25,3 +25,4 @@
return 1;
end;
' language plpgsql;
\ No newline at end of file
+
- Previous message: [Slony1-commit] By wieck: Bugfix: The Slony1 log trigger assumed that if
- Next message: [Slony1-commit] By wieck: Truncate cannot be used if table is referenced by any FK.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list