Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1euSap-0004A6-Pv for pgsql-bugs@arkaria.postgresql.org; Sat, 10 Mar 2018 00:42:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1euSao-0001aq-1v for pgsql-bugs@arkaria.postgresql.org; Sat, 10 Mar 2018 00:42:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1euSan-0001ag-S2 for pgsql-bugs@lists.postgresql.org; Sat, 10 Mar 2018 00:42:33 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1euSal-0003f3-9M for pgsql-bugs@postgresql.org; Sat, 10 Mar 2018 00:42:33 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w2A0gQsd030526; Fri, 9 Mar 2018 19:42:26 -0500 From: Tom Lane To: Andres Freund cc: "David G. Johnston" , Kouber Saparev , Postgres Bug Subject: Re: Unrecognized exception condition "deprecated_feature" In-reply-to: <20180310001748.bkrbahho3ssdvp6n@alap3.anarazel.de> References: <24803.1520635455@sss.pgh.pa.us> <20180310001748.bkrbahho3ssdvp6n@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Fri, 09 Mar 2018 16:17:48 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <30524.1520642546.1@sss.pgh.pa.us> Date: Fri, 09 Mar 2018 19:42:26 -0500 Message-ID: <30525.1520642546@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund 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