Re: [GENERAL] Oracle database into PostgreSQL using Ora2PG tool. - Mailing list pgsql-general

From PAWAN SHARMA
Subject Re: [GENERAL] Oracle database into PostgreSQL using Ora2PG tool.
Date
Msg-id CAPgXFMS6Wkp=K38amsr+f7++gDRbXLmwmLRnxQSLrJ_KA7qBWA@mail.gmail.com
Whole thread Raw
In response to Re: [GENERAL] Oracle database into PostgreSQL using Ora2PG tool.  (Igor Neyman <ineyman@perceptron.com>)
List pgsql-general


On Sat, Jun 3, 2017 at 1:48 AM, Igor Neyman <ineyman@perceptron.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';

 

pgsql-general by date:

Previous
From: Michael Paquier
Date:
Subject: Re: [GENERAL] pg_rewind - enable wal_log_hints or data-checksums
Next
From: Garry Sim
Date:
Subject: [GENERAL] Unable to install EASM postgre due to error 8023