BUG #16265: psql shows (unfolded) relation name in quotes

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: jltallon(at)adv-solutions(dot)net
Subject: BUG #16265: psql shows (unfolded) relation name in quotes
Date: 2020-02-19 01:17:22
Message-ID: 16265-222897d24189e4d9@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 16265
Logged by: Jose Luis Tallon
Email address: jltallon(at)adv-solutions(dot)net
PostgreSQL version: 12.1
Operating system: Linux
Description:

When dealing with schemas containing non-all-lowercase names, psql error
messages can be confusing.

Reproducer below:
-------------------
test=> CREATE TABLE "Schedule";
CREATE TABLE
test=> \dt "Schedule"
List of relations
Schema | Name | Type | Owner
--------+----------+-------+----------
public | Schedule | table | jltallon
(1 row)
test=> \d+ Schedule
Did not find any relation named "Schedule".
-------------------

EXPECTED:
-------------------
test=> \d+ Schedule
Did not find any relation named "schedule".
-------------------

Please note that the only difference lies in case-folding of the unquoted
relation name: psql copies the relation name verbatim to the output message,
whereas it should case-fold it according to standard Postgres rules.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Atila Rangel 2020-02-19 02:59:58 [Bug Report] Week Day
Previous Message Doke, Tim (TR Tech, Content & Ops) 2020-02-19 00:41:13 windows 10 postgres install bug