BUG #8402: Bad error message by psql

Started by David Tonhoferover 12 years ago1 messagesbugs
Jump to latest
#1David Tonhofer
bughunt@gluino.name

The following bug has been logged on the website:

Bug reference: 8402
Logged by: David Tonhofer
Email address: bughunt@gluino.name
PostgreSQL version: 9.2.4
Operating system: Linux
Description:

Got a table named

"Communes_du_Luxembourg_en_Polygones"

=> \d+ Communes_du_Luxembourg_en_Polygones

Did not find any relation named "Communes_du_Luxembourg_en_Polygones"

That message is wrong!

The name of the table is not quoted, so psql is looking for

"communes_du_Luxembourg_en_polygones"

So it should say:

Did not find any relation named "communes_du_luxembourg_en_polygones"
(quoting may be needed to avoid casefolding)

And indeed:

\d+ "Communes_du_Luxembourg_en_Polygones"

works like a charm.

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