Wed Apr 13 21:11:18 PDT 2005
- Previous message: [Slony1-commit] By cbbrowne: Cleaned up the quoting-name example, adding in some
- Next message: [Slony1-commit] By cbbrowne: Address bug #1226 If a set contains no tables, then warn
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Log Message:
-----------
Temporary resolution to bug #1226 - if you ask to subscribe a set that
consists solely of sequences, and has no tables, a notice will be
raised/logged that points the gentle user to bug #1226.
Modified Files:
--------------
slony1-engine/src/backend:
slony1_funcs.sql (r1.59 -> r1.60)
-------------- next part --------------
Index: slony1_funcs.sql
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/src/backend/slony1_funcs.sql,v
retrieving revision 1.59
retrieving revision 1.60
diff -Lsrc/backend/slony1_funcs.sql -Lsrc/backend/slony1_funcs.sql -u -w -r1.59 -r1.60
--- src/backend/slony1_funcs.sql
+++ src/backend/slony1_funcs.sql
@@ -3778,6 +3778,17 @@
''Slony-I: set provider and receiver cannot be identical'';
end if;
+
+ -- ---
+ -- Check to see if the set contains any tables - gripe if not - bug #1226
+ -- ---
+ if not exists (select true
+ from @NAMESPACE at .sl_table
+ where tab_set = p_sub_set) then
+ raise notice ''subscribeSet:: set % has no tables - risk of problems - see bug 1226'', p_sub_set;
+ raise notice ''http://gborg.postgresql.org/project/slony1/bugs/bugupdate.php?1226'';
+ end if;
+
-- ----
-- Create the SUBSCRIBE_SET event
-- ----
- Previous message: [Slony1-commit] By cbbrowne: Cleaned up the quoting-name example, adding in some
- Next message: [Slony1-commit] By cbbrowne: Address bug #1226 If a set contains no tables, then warn
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list