Re: Add primary keys to system catalogs

From: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add primary keys to system catalogs
Date: 2021-07-16 18:18:43
Message-ID: 8703bbf8-bcb6-c440-f3e0-e3fcee382f49@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 03.10.20 08:40, Peter Eisentraut wrote:
> I saw someone ask once for a schema diagram of the system catalogs.
> Things like that have occasionally been produced manually, but they are
> not regularly updated.  That made me wonder, why can't we add primary
> and foreign keys to system catalogs and then have existing tools produce
> such a schema diagram automatically?

Given that these prerequisites have been accomplished in PostgreSQL 14,
I went back and made a little tool to convert the foreign-key
relationship information into a graphviz representation. The result
turns out to be pretty unwieldly and probably not something easily
suitable for the documentation; maybe someone wants to fine-tune the
graphviz settings to get a better view. My tool is at
<https://github.com/petere/pgcatviz>. Attached is a sample output.

Attachment Content-Type Size
catalog.svg image/svg+xml 172.0 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message James Coleman 2021-07-16 19:16:10 Re: Consider parallel for lateral subqueries with limit
Previous Message Tom Lane 2021-07-16 18:15:26 Re: CREATE TABLE .. PARTITION OF fails to preserve tgenabled for inherited row triggers