From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joel Jacobson <joel@compiler.org>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: Add primary keys to system catalogs
Date: Fri, 22 Jan 2021 10:42:33 -0500
Message-ID: <1154909.1611330153@sss.pgh.pa.us> (raw)
In-Reply-To: <7512e697-baad-4471-a3c0-93a0114ea07f@www.fastmail.com>
References: <dc5f44d9-5ec1-a596-0251-dadadcdede98@2ndquadrant.com>
<348f3158-bf7e-c5f0-f33b-9e552e3d5481@2ndquadrant.com>
<266949.1610921277@sss.pgh.pa.us>
<4b5a1272-b6ea-d2e0-9b8f-3bec20109eb5@2ndquadrant.com>
<906053.1611249356@sss.pgh.pa.us>
<7512e697-baad-4471-a3c0-93a0114ea07f@www.fastmail.com>
"Joel Jacobson" <joel@compiler.org> writes:
> I ran this query (on a patched database) to see if there are still any catalog tables without primary keys:
> ...
> pg_depend
> pg_shdepend
Yeah, this is noted in the patch's own regression tests.
> Wouldn't it be possible to add primary keys to these two as well?
Neither of the existing indexes is suitable, not being unique.
We could imagine adding a unique index across the whole column set,
but that would be an awfully large price to pay for neatnik-ism.
Also, at least for pg_depend (less sure about pg_shdepend), some code
cleanup would be required, because I don't think that we try very
hard to avoid making duplicate dependency entries. On the whole
I feel this'd be counterproductive.
regards, tom lane
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-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, joel@compiler.org, peter.eisentraut@2ndquadrant.com
Subject: Re: Add primary keys to system catalogs
In-Reply-To: <1154909.1611330153@sss.pgh.pa.us>
References: <dc5f44d9-5ec1-a596-0251-dadadcdede98@2ndquadrant.com> <348f3158-bf7e-c5f0-f33b-9e552e3d5481@2ndquadrant.com> <266949.1610921277@sss.pgh.pa.us> <4b5a1272-b6ea-d2e0-9b8f-3bec20109eb5@2ndquadrant.com> <906053.1611249356@sss.pgh.pa.us> <7512e697-baad-4471-a3c0-93a0114ea07f@www.fastmail.com> <1154909.1611330153@sss.pgh.pa.us>
* 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