Re: Foreign Key Identification - Mailing list pgsql-general

From Tom Lane
Subject Re: Foreign Key Identification
Date
Msg-id 10099.1168449445@sss.pgh.pa.us
Whole thread Raw
In response to Re: Foreign Key Identification  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Responses Re: Foreign Key Identification  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
List pgsql-general
"A. Kretschmer" <andreas.kretschmer@schollglas.com> writes:
> am  Wed, dem 10.01.2007, um  8:23:28 -0800 mailte Ashish Karalkar folgendes:
>> Is there any means to list out the foreign key tables
>> which are liked with a primary key?

> Take a look into the pg_depend - table.

I think there's an information_schema view that would give you this
without getting so cozy with implementation details as to look in
pg_depend ...

            regards, tom lane

pgsql-general by date:

Previous
From: Brad Nicholson
Date:
Subject: Re: Recording insert, updates, and deletes
Next
From: Scott Marlowe
Date:
Subject: Re: index creation on 7.3