projects
/
slony1-engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3cf96e
)
Fix for bug # 122
author
Steve Singer
<ssinger@ca.afilias.info>
Fri, 6 Aug 2010 18:13:47 +0000
(14:13 -0400)
committer
Steve Singer
<ssinger@ca.afilias.info>
Fri, 6 Aug 2010 18:13:47 +0000
(14:13 -0400)
Print a better error message when using a receiver node id that does not exist
(cherry picked from commit
03db9e0b2c1625aafdaedbf6bf3730c8889cbb2f
)
src/backend/slony1_funcs.sql
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/slony1_funcs.sql
b/src/backend/slony1_funcs.sql
index ebc5017ddd07f040d5d3d6246f91d57ad8be9986..ca5ce5e8808ed6b3718b65a591253a269c79aab0 100644
(file)
--- a/
src/backend/slony1_funcs.sql
+++ b/
src/backend/slony1_funcs.sql
@@
-4028,6
+4028,14
@@
begin
raise exception 'Slony-I: subscribeSet() must be called on provider';
end if;
+ --
+ -- Check that the receiver exists
+ --
+ if not exists (select no_id from @NAMESPACE@.sl_node where no_id=
+ p_sub_receiver) then
+ raise exception 'Slony-I: subscribeSet() the receiver does not exist receiver id:%' , p_sub_receiver;
+ end if;
+
-- ----
-- Check that the origin and provider of the set are remote
-- ----