From: Thomas Kellerer <shammat@gmx.net>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Misplaced double quotes in error message
Date: Thu, 7 Oct 2021 08:17:16 +0200
Message-ID: <bdda62ba-ec52-60bb-ab43-786187d7066c@gmx.net> (raw)
Hello,
consider the following table, query and error message:
create table t
(
"someColumn" int
);
select t.someColumn
from t;
ERROR: column t.somecolumn does not exist
Hint: Perhaps you meant to reference the column "t.someColumn".
For someone proficient in SQL it's pretty clear what the error message means,
but the quotes can be misleading for someone who doesn't really understand
what's going on.
I think if the error message quoted the column name the way it should actually
be used, it would make things easier for someone not used to this, e.g.:
Hint: Perhaps you meant to reference the column t."someColumn".
Because when the user takes the error message literally they might be tempted
to use "t.someColumn" just to be confronted with the same error message again
which then seems even more confusing.
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-general@postgresql.org
Cc: shammat@gmx.net
Subject: Re: Misplaced double quotes in error message
In-Reply-To: <bdda62ba-ec52-60bb-ab43-786187d7066c@gmx.net>
References: <bdda62ba-ec52-60bb-ab43-786187d7066c@gmx.net>
* 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