Re: PROPOSAL - User's exception in PL/pgSQL

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: PROPOSAL - User's exception in PL/pgSQL
Дата
Msg-id 42B52976.9020807@samurai.com
обсуждение исходный текст
Ответ на PROPOSAL - User's exception in PL/pgSQL  (Pavel Stehule <stehule@kix.fsv.cvut.cz>)
Ответы Re: PROPOSAL - User's exception in PL/pgSQL  (Pavel Stehule <stehule@kix.fsv.cvut.cz>)
Список pgsql-hackers
Pavel Stehule wrote:
>     DECLARE excpt EXCEPTION [= 'SQLSTATE']

What would this default to? (i.e. if no '= SQLSTATE' is specified)

> Rules:
>  o User can specify SQLSTATE only from class 'U1' 
>  o Default values for SQLSTATE usr excpt are from class 'U0'

Can you elaborate on what you mean?

>  o Every exception's variable has unique SQLSTATE
>  o User's exception or system's exception can be raised only with
>    level EXCEPTION

It might be worth allowing a custom SQLSTATE to be specified for 
non-exception RAISEs -- there are already WARNING SQLSTATE error codes 
(see ERRCODE_WARNING).

-Neil


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

Предыдущее
От: "Thomas F. O'Connell"
Дата:
Сообщение: Re: [PATCHES] default database creation with initdb
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Checkpointing problem with new buffer mgr.