Scheduler and external tool invoker for PostgreSQL