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 1euQkR-0006Pj-Lb for pgsql-bugs@arkaria.postgresql.org; Fri, 09 Mar 2018 22:44:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1euQkQ-0005HE-4F for pgsql-bugs@arkaria.postgresql.org; Fri, 09 Mar 2018 22:44:22 +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 1euQkP-0005H4-UJ for pgsql-bugs@lists.postgresql.org; Fri, 09 Mar 2018 22:44:21 +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 1euQkM-000173-Ki for pgsql-bugs@postgresql.org; Fri, 09 Mar 2018 22:44:21 +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 w29MiFYj024804; Fri, 9 Mar 2018 17:44:15 -0500 From: Tom Lane To: "David G. Johnston" cc: Kouber Saparev , Postgres Bug Subject: Re: Unrecognized exception condition "deprecated_feature" In-reply-to: References: Comments: In-reply-to "David G. Johnston" message dated "Fri, 09 Mar 2018 12:00:33 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <24802.1520635455.1@sss.pgh.pa.us> Date: Fri, 09 Mar 2018 17:44:15 -0500 Message-ID: <24803.1520635455@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "David G. Johnston" writes: > On Fri, Mar 9, 2018 at 11:55 AM, Kouber Saparev 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