pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Remove unnecessary "DISTINCT" in psql's queries for \dAc and \dA 2+ messages / 1 participants [nested] [flat]
* pgsql: Remove unnecessary "DISTINCT" in psql's queries for \dAc and \dA @ 2020-08-03 18:02 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2020-08-03 18:02 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ master Details ------- https://git.postgresql.org/pg/commitdiff/9e496768b8a7303ea07888ea1baae8e2a57dda7b Modified Files -------------- src/bin/psql/describe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Remove unnecessary "DISTINCT" in psql's queries for \dAc and \dA @ 2020-08-03 18:02 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2020-08-03 18:02 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2020-08-03 18:02 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2020-08-03 18:02 pgsql: Remove unnecessary "DISTINCT" in psql's queries for \dAc and \dA Tom Lane <tgl@sss.pgh.pa.us> 2020-08-03 18:02 pgsql: Remove unnecessary "DISTINCT" in psql's queries for \dAc and \dA Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox