Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eRpep-0006zW-97 for pgsql-sql@arkaria.postgresql.org; Thu, 21 Dec 2017 01:28:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eRpeo-0005Gj-5f for pgsql-sql@arkaria.postgresql.org; Thu, 21 Dec 2017 01:28: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.84_2) (envelope-from ) id 1eRpeo-0005Ga-01 for pgsql-sql@lists.postgresql.org; Thu, 21 Dec 2017 01:28:22 +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 1eRpej-0000Jg-Vl for pgsql-sql@lists.postgresql.org; Thu, 21 Dec 2017 01:28:20 +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 vBL1SFMJ011559; Wed, 20 Dec 2017 20:28:15 -0500 From: Tom Lane To: =?UTF-8?Q?J=c3=bcrgen_Purtz?= cc: pgsql-sql@lists.postgresql.org Subject: Re: SQL conformity regarding SQLSTATE In-reply-to: References: <31999.1513697414@sss.pgh.pa.us> Comments: In-reply-to =?UTF-8?Q?J=c3=bcrgen_Purtz?= message dated "Wed, 20 Dec 2017 11:08:20 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <11557.1513819695.1@sss.pgh.pa.us> Date: Wed, 20 Dec 2017 20:28:15 -0500 Message-ID: <11558.1513819695@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =?UTF-8?Q?J=c3=bcrgen_Purtz?= writes: > Summary: 01008, 03000, 0B000, 39001, F0000, and F0001 do not conform to > the standard. I poked around in SQL:2011 and I concur that the first four of those no longer appear in the standard. However, unless grep is failing me, we aren't generating those errcodes anywhere either: ERRCODE_WARNING_IMPLICIT_ZERO_BIT_PADDING ERRCODE_SQL_STATEMENT_NOT_YET_COMPLETE ERRCODE_INVALID_TRANSACTION_INITIATION ERRCODE_E_R_I_E_INVALID_SQLSTATE_RETURNED So we could just remove those codes and be no worse off. As for the other two, ERRCODE_CONFIG_FILE_ERROR and ERRCODE_LOCK_FILE_EXISTS, we certainly are using those, but as I mentioned it seems somewhat unlikely that clients are testing for them. I'm tempted to propose renumbering them as PF000 and PF001. regards, tom lane