diff options
author | Marko Kreen | 2012-07-09 09:49:25 +0000 |
---|---|---|
committer | Marko Kreen | 2012-07-09 09:49:25 +0000 |
commit | de8cac1cae04d4d675b23fa196f9e2d68a3c3128 (patch) | |
tree | ac7bde019d3f6da979d0ea2deac90d3760a6f07c | |
parent | 82c67156bb05033832ab1ce3dbf7c13fe3fcd6f6 (diff) |
pgq.maint_operations: include londiste.periodic_maintenance
-rw-r--r-- | sql/pgq/functions/pgq.maint_operations.sql | 10 |
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; |