How do Exception, do nothing and carry on

Поиск
Список
Период
Сортировка
От Shaozhong SHI
Тема How do Exception, do nothing and carry on
Дата
Msg-id CA+i5Jwa9E1RyApZYViBgG9yyCRT5V4WKRAeWDXuVe_1qf4uCsA@mail.gmail.com
обсуждение исходный текст
Ответы Re: How do Exception, do nothing and carry on  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-sql
The function in the following block code may fail.

How to make it to carry on by ignoring exception?

Something like Python's try catch.

for i in (select distinct id from id_table) 
  loop
         raise notice '%', i;
           insert into my_table(id, last, arr, count) SELECT i, * from my_function(i) f(last int, arr int[], count int);
           commit;

  end loop;

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: How to select the last value/row?
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: How do Exception, do nothing and carry on