Re: Unrecognized exception condition "deprecated_feature" - Mailing list pgsql-bugs

From Kouber Saparev
Subject Re: Unrecognized exception condition "deprecated_feature"
Date
Msg-id CAN4RuQvYau6gemXwR9o24+ZEeLx+bYjxR2p1S-tbLVTegjzwKw@mail.gmail.com
Whole thread Raw
In response to Re: Unrecognized exception condition "deprecated_feature"  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Unrecognized exception condition "deprecated_feature"
Next
From: Andres Freund
Date:
Subject: Re: Unrecognized exception condition "deprecated_feature"