From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Kouber Saparev <kouber@gmail.com>
Cc: Postgres Bug <pgsql-bugs@postgresql.org>
Subject: Re: Unrecognized exception condition "deprecated_feature"
Date: Fri, 09 Mar 2018 17:44:15 -0500
Message-ID: <24803.1520635455@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwYeV7WRO6NK8-eEO0jHLtgkSqG3QnrhrxwmHcy9U0XErQ@mail.gmail.com>
References: <CAN4RuQvC3OGXv8bWEiRO_PQbgGeTLyw5e78q0cQEkXPSsczAYg@mail.gmail.com>
<CAKFQuwYeV7WRO6NK8-eEO0jHLtgkSqG3QnrhrxwmHcy9U0XErQ@mail.gmail.com>
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Fri, Mar 9, 2018 at 11:55 AM, Kouber Saparev <kouber@gmail.com> wrote:
>> For some reason using an error code of 'deprecated_feature' does not work,
>> while its equivalent '01P01' works just fine.
> While I haven't looked at the source code or docs for this I'm wondering
> why you believe this is a bug in the first place.
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.)
I'm not entirely sure why we have this errcode at all, as it doesn't
seem to be used anywhere.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, kouber@gmail.com
Subject: Re: Unrecognized exception condition "deprecated_feature"
In-Reply-To: <24803.1520635455@sss.pgh.pa.us>
References: <CAN4RuQvC3OGXv8bWEiRO_PQbgGeTLyw5e78q0cQEkXPSsczAYg@mail.gmail.com> <CAKFQuwYeV7WRO6NK8-eEO0jHLtgkSqG3QnrhrxwmHcy9U0XErQ@mail.gmail.com> <24803.1520635455@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox