Thread: Integrity Relationships

Integrity Relationships

From
"rob"
Date:
Given a table name, is there a way to query one or more system tables to
determine what other tables it references via foreign keys?  The opposite
would work just as well (i.e. what other tables reference the given table).
I've looked at pg_triggers and there seems to be an attribute (trigger
arguments?)  that has the table names, but I don't know how to parse the
data correctly.

TIA,

--rob