From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: 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 19:42:26 -0500
Message-ID: <30525.1520642546@sss.pgh.pa.us> (raw)
In-Reply-To: <20180310001748.bkrbahho3ssdvp6n@alap3.anarazel.de>
References: <CAN4RuQvC3OGXv8bWEiRO_PQbgGeTLyw5e78q0cQEkXPSsczAYg@mail.gmail.com>
<CAKFQuwYeV7WRO6NK8-eEO0jHLtgkSqG3QnrhrxwmHcy9U0XErQ@mail.gmail.com>
<24803.1520635455@sss.pgh.pa.us>
<20180310001748.bkrbahho3ssdvp6n@alap3.anarazel.de>
Andres Freund <andres@anarazel.de> writes:
> On 2018-03-09 17:44:15 -0500, Tom Lane wrote:
>> I'm not entirely sure why we have this errcode at all, as it doesn't
>> seem to be used anywhere.
> It used to be used till:
> ...
> While it wasn't used for ~12 years, it seems like a useful
> concept. OTOH, we've tried hard to avoid warnings like that due to the
> log spam...
Yeah, I'm not that excited about removing it. Probably a more useful
thing to debate is whether we ought to change the policy about omitting
warning conditions from plpgsql's conversion list. While the core code
hasn't got a use for that (since we never actually throw errors with such
SQLSTATEs), this complaint seems to indicate that users would like to use
them in RAISE.
(I'd still skip "success" conditions, like 00000, in any case.)
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, andres@anarazel.de, david.g.johnston@gmail.com, kouber@gmail.com
Subject: Re: Unrecognized exception condition "deprecated_feature"
In-Reply-To: <30525.1520642546@sss.pgh.pa.us>
References: <CAN4RuQvC3OGXv8bWEiRO_PQbgGeTLyw5e78q0cQEkXPSsczAYg@mail.gmail.com> <CAKFQuwYeV7WRO6NK8-eEO0jHLtgkSqG3QnrhrxwmHcy9U0XErQ@mail.gmail.com> <24803.1520635455@sss.pgh.pa.us> <20180310001748.bkrbahho3ssdvp6n@alap3.anarazel.de> <30525.1520642546@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