From: Stefan Hanenberg <stefan.hanenberg@googlemail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: David Rowley <david.rowley@2ndquadrant.com>
Cc: stefan.hanenberg@googlemail.com, PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14883: Syntax SQL error (42601), but should be a different error no
Date: Fri, 3 Nov 2017 12:09:47 +0100
Message-ID: <1c1d01f6-40fd-92cf-e3e8-daa3723ccfc9@gmail.com> (raw)
In-Reply-To: <23556.1509418211@sss.pgh.pa.us>
References: <20171031003601.17181.3817@wrigleys.postgresql.org>
<CAKJS1f-30JFzWsuSmHzRb2KJxQWZ57qxtEEXd4FXMDm4PfMHcQ@mail.gmail.com>
<CAKFQuwacR75ao3R4s7hOor8VgL5nL2VA5KRBDU+WgVvFSvhzfw@mail.gmail.com>
<23556.1509418211@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: stefan.hanenberg@googlemail.com, tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, david.rowley@2ndquadrant.com
Subject: Re: BUG #14883: Syntax SQL error (42601), but should be a different error no
In-Reply-To: <1c1d01f6-40fd-92cf-e3e8-daa3723ccfc9@gmail.com>
References: <20171031003601.17181.3817@wrigleys.postgresql.org> <CAKJS1f-30JFzWsuSmHzRb2KJxQWZ57qxtEEXd4FXMDm4PfMHcQ@mail.gmail.com> <CAKFQuwacR75ao3R4s7hOor8VgL5nL2VA5KRBDU+WgVvFSvhzfw@mail.gmail.com> <23556.1509418211@sss.pgh.pa.us> <1c1d01f6-40fd-92cf-e3e8-daa3723ccfc9@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox