Re: Add primary keys to system catalogs - Mailing list pgsql-hackers

From Julien Rouhaud
Subject Re: Add primary keys to system catalogs
Date
Msg-id CAOBaU_bZPAfmxqEGzQUwJPVsDtwFK-E9Jorapb-4YgUMDtq65g@mail.gmail.com
Whole thread Raw
In response to Re: Add primary keys to system catalogs  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
List pgsql-hackers
On Tue, Feb 2, 2021 at 6:49 PM Peter Eisentraut
<peter.eisentraut@2ndquadrant.com> wrote:
>
> I do wonder, however, under what circumstances code would be put into a
> situation where it would add the exact same dependency again, and also
> under what circumstances it would add a dependency between the same
> objects but a different deptype, and how that would work during
> recursive deletion.  Now that we have the refobjversion column, the
> presence of duplicate dependencies might be even more dubious.  I think
> that could be worth analyzing.

There's at least dependencies from indexes to pg_class (underlying
table) and pg_collation that can be entirely duplicated (if the same
column and/or collation is used in both key and predicate for
instance), and this was the case before refobjversion was introduced.



pgsql-hackers by date:

Previous
From: Victor Yegorov
Date:
Subject: Re: New IndexAM API controlling index vacuum strategies
Next
From: Noah Misch
Date:
Subject: Race between KeepFileRestoredFromArchive() and restartpoint