pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: vodevsh@gmail.com, "pgsql-bugs@postgresql.org" <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14500: error message displays "schema dot relation" in double quotes all together
Date: Tue, 17 Jan 2017 10:35:24 -0500
Message-ID: <7406.1484667324@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwaqk8=rGTyq45y3BgGaJi=skm9Jk3nPu_EydfS+KU849w@mail.gmail.com>
References: <20170117110918.1434.14259@wrigleys.postgresql.org>
	<CAKFQuwaqk8=rGTyq45y3BgGaJi=skm9Jk3nPu_EydfS+KU849w@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Tue, Jan 17, 2017 at 4:09 AM, <vodevsh@gmail.com> wrote:
>> I'm not sure if it's a bug or feature, but I find error message misleading.
>> ERROR: relation [“schema_name.table_name”] does not exist gives an
>> impression that schema name is part of relation name. Should not it be
>> ERROR: relation [“schema name”].["table_name"] does not exist instead? I
>> doubt it's a bug, because this message seems version not specific. But does
>> not it look wrong?

> More to the point, the double quotes are not part of the identifiers but
> rather offset the item being named from the rest of the sentence fragment.

Yes.  In a translated message you might see something like

	Relation »schema_name.table_name« existiert nicht

That is, the double quotes here are not SQL syntax but part of the human
language that the error message is written in.  It's unfortunate in this
context that SQL's identifier quoting character is the same as we use in
English, because it invites confusion like the OP's.  But the only way
to fix that would be to go over to non-ASCII quoting characters (curly
quotes, say) in the English message texts, and that would create tons of
practical problems.  Plus, if you didn't look closely enough to see the
difference between curly quotes and plain double quotes, you'd still
be confused.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (8+ messages)  latest in thread

Message-ID: <7406.1484667324@sss.pgh.pa.us>
Permalink:  ../7406.1484667324@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/7406.1484667324@sss.pgh.pa.us

 · 

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 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: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com
  Subject: Re: BUG #14500: error message displays "schema dot relation" in double quotes all together
  In-Reply-To: <7406.1484667324@sss.pgh.pa.us>
  References: <20170117110918.1434.14259@wrigleys.postgresql.org> <CAKFQuwaqk8=rGTyq45y3BgGaJi=skm9Jk3nPu_EydfS+KU849w@mail.gmail.com> <7406.1484667324@sss.pgh.pa.us>

* 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