summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Kreen2012-07-09 09:49:25 +0000
committerMarko Kreen2012-07-09 09:49:25 +0000
commitde8cac1cae04d4d675b23fa196f9e2d68a3c3128 (patch)
treeac7bde019d3f6da979d0ea2deac90d3760a6f07c
parent82c67156bb05033832ab1ce3dbf7c13fe3fcd6f6 (diff)
pgq.maint_operations: include londiste.periodic_maintenance
-rw-r--r--sql/pgq/functions/pgq.maint_operations.sql10
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/pgq/functions/pgq.maint_operations.sql b/sql/pgq/functions/pgq.maint_operations.sql
index 31c44ba3..5ddb26fa 100644
--- a/sql/pgq/functions/pgq.maint_operations.sql
+++ b/sql/pgq/functions/pgq.maint_operations.sql
@@ -113,6 +113,16 @@ begin
end loop;
end if;
+ perform 1 from pg_proc p, pg_namespace n
+ where p.pronamespace = n.oid
+ and n.nspname = 'londiste'
+ and p.proname = 'periodic_maintenance';
+ if found then
+ func_name := 'londiste.periodic_maintenance';
+ func_arg := NULL;
+ return next;
+ end if;
+
return;
end;
$$ language plpgsql;