pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add DISTINCT to information schema usage views
Date: Wed, 21 Apr 2021 10:32:52 +0000
Message-ID: <E1lZAA8-0001hR-8l@gemulon.postgresql.org> (raw)

Add DISTINCT to information schema usage views

Since pg_depend can contain duplicate entries, we need to eliminate
those in information schema views that build on pg_depend, using
DISTINCT.  Some of the older views already did that correctly, but
some of the more recently added ones didn't.  (In some of these views,
it might not be possible to reproduce the issue because of how the
implementation happens to deduplicate dependencies while recording
them, but it seems better to keep this consistent in all cases.)

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d84ffffe582b8e036a14c6bc2378df29167f3a00

Modified Files
--------------
src/backend/catalog/information_schema.sql | 18 ++++++++++++------
src/include/catalog/catversion.h           |  2 +-
2 files changed, 13 insertions(+), 7 deletions(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1lZAA8-0001hR-8l@gemulon.postgresql.org>
Permalink:  ../E1lZAA8-0001hR-8l@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lZAA8-0001hR-8l@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org
  Subject: Re: pgsql: Add DISTINCT to information schema usage views
  In-Reply-To: <E1lZAA8-0001hR-8l@gemulon.postgresql.org>
  References: <E1lZAA8-0001hR-8l@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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