Re: Unrecognized exception condition "deprecated_feature"

Поиск
Список
Период
Сортировка
От Kouber Saparev
Тема Re: Unrecognized exception condition "deprecated_feature"
Дата
Msg-id CAN4RuQvYau6gemXwR9o24+ZEeLx+bYjxR2p1S-tbLVTegjzwKw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Unrecognized exception condition "deprecated_feature"  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
2018-03-10 0:44 GMT+02:00 Tom Lane <tgl@sss.pgh.pa.us>:
This isn't specific to ERRCODE_WARNING_DEPRECATED_FEATURE; if you look
at generate-plerrcodes.pl you'll see it only collects error codes, not
warning codes, for use in plpgsql's mapping table.  It's documented, too:
Appendix A says

    (Note that PL/pgSQL does not recognize warning, as opposed to error,
    condition names; those are classes 00, 01, and 02.)

Indeed.

next unless $type eq 'E';

The only exception is 'string_data_right_truncation' (01004) because actually it is duplicated further (22001).

Thanks for the clarification!

--
Kouber Saparev

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Unrecognized exception condition "deprecated_feature"
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Unrecognized exception condition "deprecated_feature"