On Sat, Jun 3, 2017 at 1:48 AM, Igor Neyman <ineyman@xxxxxxxxxxxxxx> wrote:
I wonder, does plpgsql compilation check for existence of the add_job_history function or is that a runtime check?
____________________________________________________________ ________
At runtime.
Hi Neyman,
Thanks it's done by adding PERFORM.
DROP TRIGGER IF EXISTS update_job_history ON employees CASCADE;
CREATE OR REPLACE FUNCTION trigger_fct_update_job_
BEGIN
PERFORM add_job_history(OLD.employee_
OLD.job_id, OLD.department_id);
RETURN NEW;
END
$BODY$
LANGUAGE 'plpgsql';