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

From Peter Eisentraut
Subject Re: Add primary keys to system catalogs
Date
Msg-id 37c18f90-fd2a-993f-0527-1a06049ab8bb@2ndquadrant.com
Whole thread Raw
In response to Re: Add primary keys to system catalogs  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 2021-01-18 18:23, Tom Lane wrote:
> The reason I got interested in this right now is the nearby
> discussion [1] about why findoidjoins misses some catalog
> relationships and whether we should fix that and/or make its results
> more readily accessible.  I'd thought perhaps FK constraint entries
> could supersede the need for that tool altogether, but now it seems
> like not.

Yes, catalog consistency checking was also something I had in mind. 
There are clearly a number of complications still to resolve.  But in 
general the idea of representing relationships between tables in the 
DDL/schema sounds like a sensible idea.

-- 
Peter Eisentraut
2ndQuadrant, an EDB company
https://www.2ndquadrant.com/



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Add primary keys to system catalogs
Next
From: Michael Paquier
Date:
Subject: Re: OpenSSL connection setup debug callback issue