I wonder, does plpgsql compilation check for existence of the add_job_history function or is that a runtime check?
____________________________________________________________________
At runtime.