INSERT ALL with DML ERROR Logging replacement in PostgreSQL

Поиск
Список
Период
Сортировка
От Jagmohan Kaintura
Тема INSERT ALL with DML ERROR Logging replacement in PostgreSQL
Дата
Msg-id CA+cYFtu4DfhHkxc=U_FMC-p4qYu4fXN206V9=0BTHB=B_uLtdg@mail.gmail.com
обсуждение исходный текст
Ответы Re: INSERT ALL with DML ERROR Logging replacement in PostgreSQL  (Gilles Darold <gilles@darold.net>)
Список pgsql-general
Hi Team,
We are working on a project where we are moving from Oracle to PostgreSQL and working on a migration tool which mostly have statements for inserting the records which are correct and logging the errors in error table using ORACLE inbuilt statement for INSERT ALL with DML ERROR logging. 

As part of the postgresql best practices, what approach are we taking to move these types of statements in Postgresql as we don't have any such equivalent mechanism to load correct data in the main table and error record in error table with error reason. 

The statements mostly used are -->
INSERT ALL INTO
target_table
(COLUMN LIST)
VALUES()
LOG ERROR INTO ...
SELECT statement considering the source tables;

)
Can anyone please help me with what could be the best approach to convert this in the tool.

--
Best Regards,
Jagmohan 

В списке pgsql-general по дате отправления:

Предыдущее
От: Dominique Devienne
Дата:
Сообщение: Re: accessing postgres from c++
Следующее
От: Gilles Darold
Дата:
Сообщение: Re: INSERT ALL with DML ERROR Logging replacement in PostgreSQL