Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cTVnG-0001mn-V6 for pgsql-bugs@arkaria.postgresql.org; Tue, 17 Jan 2017 15:35:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cTVnG-0001v6-I7 for pgsql-bugs@arkaria.postgresql.org; Tue, 17 Jan 2017 15:35:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cTVnF-0001uh-V6 for pgsql-bugs@postgresql.org; Tue, 17 Jan 2017 15:35:30 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cTVnC-00058P-LW for pgsql-bugs@postgresql.org; Tue, 17 Jan 2017 15:35:29 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v0HFZOuQ007407; Tue, 17 Jan 2017 10:35:24 -0500 From: Tom Lane To: "David G. Johnston" cc: vodevsh@gmail.com, "pgsql-bugs@postgresql.org" Subject: Re: BUG #14500: error message displays "schema dot relation" in double quotes all together In-reply-to: References: <20170117110918.1434.14259@wrigleys.postgresql.org> Comments: In-reply-to "David G. Johnston" message dated "Tue, 17 Jan 2017 08:19:39 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <7405.1484667324.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 17 Jan 2017 10:35:24 -0500 Message-ID: <7406.1484667324@sss.pgh.pa.us> X-Pg-Spam-Score: -5.1 (-----) 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 "David G. Johnston" writes: > On Tue, Jan 17, 2017 at 4:09 AM, wrote: >> I'm not sure if it's a bug or feature, but I find error message misleadi= ng. >> ERROR: relation [=E2=80=9Cschema_name.table_name=E2=80=9D] does not exis= t gives an >> impression that schema name is part of relation name. Should not it be >> ERROR: relation [=E2=80=9Cschema name=E2=80=9D].["table_name"] does not = exist instead? I >> doubt it's a bug, because this message seems version not specific. But d= oes >> 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 =C2=BBschema_name.table_name=C2=AB 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 --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs