Catch exceptions outside function

Поиск
Список
Период
Сортировка
От Roberto Grandi
Тема Catch exceptions outside function
Дата
Msg-id 452256586.387717.1379499437400.JavaMail.root@trovaprezzi.it
обсуждение исходный текст
Ответы Re: Catch exceptions outside function  (Albe Laurenz <laurenz.albe@wien.gv.at>)
Re: Catch exceptions outside function  (Igor Neyman <ineyman@perceptron.com>)
Список pgsql-admin
Dear all

I ask for your help cause I can't point out the solution to my problem on PG 8.3
I would catch an exception outside any function/procedure but directly within script.


BEGIN;

-- raise an exception code

EXCEPTION
WHEN 'exception_type'
THEN ROLLBACK;

COMMIT;

is it possible with PG 8.3?


Many thanks in advance.

Roberto


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

Предыдущее
От: Kevin Grittner
Дата:
Сообщение: Re: Dumping a database that is not accepting commands?
Следующее
От: Albe Laurenz
Дата:
Сообщение: Re: Catch exceptions outside function