Re: pg_catalog tables don't have constraints?

From: Neil Anderson <neil(at)postgrescompare(dot)com>
To: kbrannen(at)pwhome(dot)com
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: pg_catalog tables don't have constraints?
Date: 2017-06-09 22:03:26
Message-ID: CAEKCySupnQVyYiZvStPYGcqXwxZqrq8fLQdR7fYSsmMxg7tyLA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 9 Jun 2017 14:59, <kbrannen(at)pwhome(dot)com> wrote:

Neil Anderson <neil(at)postgrescompare(dot)com> wrote:

> I've been exploring the pg_catalog tables and pointed a couple of tools at
> it to extract an ER diagram for a blog post. At first I thought it was a
bug
> in the drawing tool but it appears that the relationships between the
> pg_catalog tables are implicit rather than enforced by the database, is
that correct?

Every time I have to dive into the pg_* tables, I really want such a
diagram because
the relationships aren't obvious to me, so I've been looking for a diagram
like that
and haven't found one. I've also considered trying to make one, but with
all of the
custom types, my normal ERD tool isn't very cooperative.

Would you be willing to share the diagram with the list when you're done?

Would you be willing to share the names of the tools and process you used
to create the diagram?

Of course. My plan is to copy the catalogs into a new schema so I can add
fk constraints and then get something like navicat or datagrip to draw it.

Thanks,
Kevin

--
Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2017-06-09 22:42:57 Re: Vacuum and state_change
Previous Message Joe Conway 2017-06-09 21:30:48 Re: Limiting DB access by role after initial connection?