Re: [GENERAL] Oracle database into PostgreSQL using Ora2PG tool.

Поиск
Список
Период
Сортировка
От PAWAN SHARMA
Тема Re: [GENERAL] Oracle database into PostgreSQL using Ora2PG tool.
Дата
Msg-id CAPgXFMS6Wkp=K38amsr+f7++gDRbXLmwmLRnxQSLrJ_KA7qBWA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [GENERAL] Oracle database into PostgreSQL using Ora2PG tool.  (Igor Neyman <ineyman@perceptron.com>)
Список 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 по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: [GENERAL] pg_rewind - enable wal_log_hints or data-checksums
Следующее
От: Garry Sim
Дата:
Сообщение: [GENERAL] Unable to install EASM postgre due to error 8023