]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Remove unnecessary "DISTINCT" in psql's queries for \dAc and \dAf.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 3 Aug 2020 18:02:35 +0000 (14:02 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 3 Aug 2020 18:02:35 +0000 (14:02 -0400)
commit72ca61101ad4076941f175b50cc86e6372023034
tree86213fe4fc59286ad47ea89ce3a9b896033df991
parent6d78f219e8afc57b6ca3765eb2dfa1b8fe095ddc
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.
src/bin/psql/describe.c