public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tom Lane <[email protected]>
To: jian he <[email protected]>
Cc: Aaryan Parik <[email protected]>
Cc: [email protected]
Subject: Re: [PATCH] psql: Display SQLSTATE macro name in verbose error reports
Date: Mon, 25 May 2026 15:20:23 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <CACJufxG62iwtxYi33ebwhTLaE8JnxJhefoygczXOFhuHhvbTvQ@mail.gmail.com>
References: <CAFAL27jsbbRkjj=zwudUU7vpmNHDgRCQXYEv_qx6D9uc7LLYvQ@mail.gmail.com>
<CACJufxG62iwtxYi33ebwhTLaE8JnxJhefoygczXOFhuHhvbTvQ@mail.gmail.com>
jian he <[email protected]> writes:
> On Sun, May 24, 2026 at 3:18 AM Aaryan Parik <[email protected]> wrote:
>> Example output:
>> ERROR: 42601: syntax error at or near "FRO"
>> LINE 1: SELECT * FRO;
>> ^
>> LOCATION: scanner_yyerror, scan.l:1220
>> SQLSTATE name: ERRCODE_SYNTAX_ERROR
> This seems identical to the patch submitted in the previous email thread, [0].
It's not exactly the same: Josh's patch did the dirty work in libpq
not psql. So this has a somewhat smaller blast radius for client
compatibility problems (but still not zero). The other comments
I posted in the other thread still apply though.
regards, tom lane
reply
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 using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: [PATCH] psql: Display SQLSTATE macro name in verbose error reports
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox