Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eAcuX-0001xd-L1 for pgsql-bugs@arkaria.postgresql.org; Fri, 03 Nov 2017 14:25:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eAcuX-0001pw-2u for pgsql-bugs@arkaria.postgresql.org; Fri, 03 Nov 2017 14:25:29 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eAZrE-0003wY-Ud for pgsql-bugs@postgresql.org; Fri, 03 Nov 2017 11:09:53 +0000 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1eAZrC-00024X-EE for pgsql-bugs@postgresql.org; Fri, 03 Nov 2017 11:09:51 +0000 Received: by mail-wm0-x22d.google.com with SMTP id b9so776093wmh.0 for ; Fri, 03 Nov 2017 04:09:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=p5hk85nIhLl2SONCstwZac/8PjngOWc10K1RAKxCD1w=; b=BGExPB8Pqe2qCuN35eOHmOrfWoiEw2Y/K6jN4ewacQQpiPa+WfoQknMRN6Cz1hP1gJ L4HR/FUDDCuDQME17sgLVmBFo81Su16/MDPD+/UwJ9yxfc5up577LLBbaK4G9PY2YVDg +FrZtZHgK1iyOuj/QJ93mXFYXpx+KhbZDEbgm7m327wgNKzRMrfYSUAcw+J5jwTts4Zs m07WcCoHDIuUVDipwXio9fM2JBu/9mA7FjbWu8ydkP1AnnvwDH8KU1bKQnx5Ypru4Vq2 6ude9CJMGuxab3ibV9BWv9AQWS2JR4MJbcMbu6pwMXqwDFfbsivHTl8XnOi/WE7E+smY QP5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=p5hk85nIhLl2SONCstwZac/8PjngOWc10K1RAKxCD1w=; b=gsvtX7NVg0wBrK3htdEROEH2KburIVgVso+q/DS9XKePj8BEphaAx7t1eW7iio+VH1 XsVUmFpEsk9bpFLVFAcVzJcFxsn+//UGGykA5TVwyeAtBOCaiFBKkKX9B8BRRkneFEgY IkdJM5YibOpxjgR6ofAd2tYr0GaiXcSeOfbT5MXEtmfjD+6Vph/ZPHSRltVwoUmo87Ri kU13IQ2Hh7qm+M8hITL+ffvcKSXo63fsMysZSRsGBbRn5sHC2CYYPSBjAHR0ZphK4m08 OQN5tA1lXre/E42u34V4poyLgR3vJXr2To97OigEcrLOUPogkLwW2r3zhW1ZzhHILDrQ FqRw== X-Gm-Message-State: AMCzsaViqWomo5rAcfUBfNQooPhlJxzLdu3WqAIO1kGi0RHpNRmfBRpe WkggQ4zNNQiJx39t9HLvgY6RENEV X-Google-Smtp-Source: ABhQp+TWCFm+AngYcI5LwC0PvXxHtOmYqtuWnnivTqyGgMiqCKRVSnzLpjL+Fc+Z6mg1cAMTeqwqaQ== X-Received: by 10.80.134.215 with SMTP id 23mr8415250edu.129.1509707388544; Fri, 03 Nov 2017 04:09:48 -0700 (PDT) Received: from [132.252.88.233] (hk13.envchem.uni-duisburg-essen.de. [132.252.88.233]) by smtp.gmail.com with ESMTPSA id u14sm4792089edd.47.2017.11.03.04.09.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Nov 2017 04:09:47 -0700 (PDT) From: Stefan Hanenberg X-Google-Original-From: Stefan Hanenberg Subject: Re: BUG #14883: Syntax SQL error (42601), but should be a different error no To: Tom Lane , "David G. Johnston" Cc: David Rowley , stefan.hanenberg@googlemail.com, PostgreSQL mailing lists References: <20171031003601.17181.3817@wrigleys.postgresql.org> <23556.1509418211@sss.pgh.pa.us> Message-ID: <1c1d01f6-40fd-92cf-e3e8-daa3723ccfc9@gmail.com> Date: Fri, 3 Nov 2017 12:09:47 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <23556.1509418211@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Am 31.10.2017 um 03:50 schrieb Tom Lane: > More generally, there are a *lot* of ERRCODE_SYNTAX_ERROR calls in > the backend that could arguably be changed to something more specific, > even without inventing any new subcategories for the purpose. If we were > to decide that we're willing to make a compatibility break here, I'd > rather see a patch that goes through all of them and changes what seems > reasonable. Better a big break than drip drip drip ... I would be really happy if the error codes would reflect more on what the error actually is -- at least for our automated tests, it turns out to be quite complicated without directly using Postgres -- currently, we have to use our own SQL parser in order to double check whether the error is actually an syntac error or not. Thanks for your reactions! Best, Stefan -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs