From: | PAWAN SHARMA <er(dot)pawanshr0963(at)gmail(dot)com> |
---|---|
To: | Igor Neyman <ineyman(at)perceptron(dot)com> |
Cc: | Neil Anderson <neil(at)postgrescompare(dot)com>, stevenchang1213 <stevenchang1213(at)gmail(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Oracle database into PostgreSQL using Ora2PG tool. |
Date: | 2017-06-05 09:08:54 |
Message-ID: | CAPgXFMS6Wkp=K38amsr+f7++gDRbXLmwmLRnxQSLrJ_KA7qBWA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Sat, Jun 3, 2017 at 1:48 AM, Igor Neyman <ineyman(at)perceptron(dot)com> 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_history() RETURNS trigger
AS $BODY$
BEGIN
PERFORM add_job_history(OLD.employee_id, OLD.hire_date, LOCALTIMESTAMP,
OLD.job_id, OLD.department_id);
RETURN NEW;
END
$BODY$
LANGUAGE 'plpgsql';
From | Date | Subject | |
---|---|---|---|
Next Message | Garry Sim | 2017-06-05 10:14:27 | Unable to install EASM postgre due to error 8023 |
Previous Message | Michael Paquier | 2017-06-05 01:38:04 | Re: pg_rewind - enable wal_log_hints or data-checksums |