Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fCX7y-00009A-3u for pgsql-docs@arkaria.postgresql.org; Sat, 28 Apr 2018 21:11:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fCX7w-0001nT-8q for pgsql-docs@arkaria.postgresql.org; Sat, 28 Apr 2018 21:11:28 +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 1fCX7w-0001n1-3H for pgsql-docs@lists.postgresql.org; Sat, 28 Apr 2018 21:11:28 +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 1fCX7t-0006tp-C5 for pgsql-docs@lists.postgresql.org; Sat, 28 Apr 2018 21:11:27 +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 w3SLBLce003934; Sat, 28 Apr 2018 17:11:21 -0400 From: Tom Lane To: "Andy Dossett" cc: "'Bruce Momjian'" , pgsql-docs@lists.postgresql.org Subject: Re: Appendix A. PostgreSQL Error Codes In-reply-to: <000001d3dec8$16875630$43960290$@btinternet.com> References: <152482369232.19804.12598002996950785414@wrigleys.postgresql.org> <20180427133914.GB32454@momjian.us> <25849.1524842189@sss.pgh.pa.us> <000001d3dec8$16875630$43960290$@btinternet.com> Comments: In-reply-to "Andy Dossett" message dated "Sat, 28 Apr 2018 09:08:26 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3931.1524949881.1@sss.pgh.pa.us> Date: Sat, 28 Apr 2018 17:11:21 -0400 Message-ID: <3933.1524949881@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "Andy Dossett" writes: > The use case is pretty simple; my system has thrown an SQL error code, I > want to know what it means. > Having the list in 'order by sqlstate' sequence would save me from having to > hunt up and down the list. And I can easily determine if the error code is > missing; I can then raise another bug report. Hm ... I'm not finding that to be a very compelling argument. Reading the message text is usually *far* more illuminating, because the error codes are (in many cases) rather broad categories rather than exact conditions. For the use case of "why did I get this error", I'd say that looking in Appendix A is quite unhelpful, and sorting it differently wouldn't make it any more helpful. regards, tom lane