| От | Thomas Kellerer |
|---|---|
| Тема | Logg errors during UPDATE |
| Дата | |
| Msg-id | ghtb7r$94v$1@ger.gmane.org обсуждение исходный текст |
| Список | pgsql-general |
Hi, with Oracle I have the ability to tell the system to log errors during a long transaction into a separate table and proceedwith the statement. This is quite handy when updating large tables and the update for one out of a million rows fails. The syntax is something like this: UPDATE <affecting a lot of rows> LOG ERRORS INTO target_log_table; Any row that can not be updated will logged into the specified table (which needs to have a specific format of course) andthe statement continues. You can add a limit on how many errors should be "tolerated". This works for INSERT and DELETE as well. Is there something similar in Postgres? Or a way how I could simulate this? Cheers Thomas
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера