pgsql: Remove unnecessary "DISTINCT" in psql's queries for \dAc and \dA

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove unnecessary "DISTINCT" in psql's queries for \dAc and \dA
Date: 2020-08-03 18:02:44
Message-ID: E1k2enM-0001L0-AA@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Remove unnecessary "DISTINCT" in psql's queries for \dAc and \dAf.

A moment's examination of these queries is sufficient to see that
they do not produce duplicate rows, unless perhaps there's
catalog corruption. Using DISTINCT anyway is inefficient and
confusing; moreover it sets a poor example for anyone who
refers to psql -E output to see how to query the catalogs.

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/72ca61101ad4076941f175b50cc86e6372023034

Modified Files
--------------
src/bin/psql/describe.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Geoghegan 2020-08-03 20:05:38 pgsql: Add nbtree page deletion assertion.
Previous Message Tom Lane 2020-08-03 17:11:43 pgsql: Doc: fix obsolete info about allowed range of TZ offsets in time