Skip to content

Commit

Permalink
Bug 128
Browse files Browse the repository at this point in the history
Change the EXCEPTION in alterTableConfigureTrigger() and
alterTableDropTrigger() into a NOTICE if the underlying table
has been dropped.
  • Loading branch information
Jan Wieck authored and Jan Wieck committed Sep 2, 2010
1 parent d747d9c commit 77ea6d2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/backend/slony1_funcs.sql
Expand Up @@ -3919,7 +3919,8 @@ begin
and PGXC.relname = T.tab_idxname
for update;
if not found then
raise exception 'Slony-I: alterTableDropTriggers(): Table with id % not found', p_tab_id;
raise notice 'Slony-I: alterTableDropTriggers(): Table with id % not found', p_tab_id;
return 0;
end if;
v_tab_fqname = v_tab_row.tab_fqname;

Expand Down Expand Up @@ -3985,7 +3986,8 @@ begin
and PGXC.relname = T.tab_idxname
for update;
if not found then
raise exception 'Slony-I: alterTableConfigureTriggers(): Table with id % not found', p_tab_id;
raise notice 'Slony-I: alterTableConfigureTriggers(): Table with id % not found', p_tab_id;
return 0;
end if;
v_tab_fqname = v_tab_row.tab_fqname;

Expand Down Expand Up @@ -5797,4 +5799,4 @@ comment on function @NAMESPACE@.reshapeSubscription(int4,int4,int4) is
'Run on a receiver/subscriber node when the provider for that
subscription is being changed. Slonik will invoke this method
before the SUBSCRIBE_SET event propogates to the receiver
so listen paths can be updated.';
so listen paths can be updated.';

0 comments on commit 77ea6d2

Please sign in to comment.