on error resume next

Поиск
Список
Период
Сортировка
От Jasmin Dizdarevic
Тема on error resume next
Дата
Msg-id a0eee4d40907310824h3fd0df14p75b633e38fd2d203@mail.gmail.com
обсуждение исходный текст
Ответы Re: on error resume next  (Andreas Wenk <a.wenk@netzmeister-st-pauli.de>)
Список pgsql-sql
hi,
 
can i use savepoints to realize something like "on error resume next"?
 
i've got the following situation:
 
begin;
1. create view user001.accounts as select * from base.accounts;
2. grant select on user001.accounts to loginuser001;
commit;
 
begin;
3. create view user002.accounts as select * from base.accounts;
4. grant select on user002.accounts to loginuser002;
commit;
 
 
my goal is to avoid execution stop, if one of the transactions fail.
let's say line 1 throws an error it should go further to line 3.
 
any ideas?
 
thank you.
 
jasmin
 
 

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

Предыдущее
От: Emi Lu
Дата:
Сообщение: Re: Show CAS, USD first; the left ordered by currency name
Следующее
От: Rob Sargent
Дата:
Сообщение: Re: SQL report