Foreign Key Identification

From: Ashish Karalkar <ashish_karalkar(at)yahoo(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Foreign Key Identification
Date: 2007-01-10 16:23:28
Message-ID: 118641.92911.qm@web31608.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello All,
Is there any means to list out the foreign key tables
which are liked with a primary key?
What i want to do is something as follows:

TableA with primary key TableAPK

TableB with Foreign key TableAPK
TableC with Foreign Key TableAPK

Waht i want to get is

select tablename from ? where Foreign key = TableAPK
and this should list me

TableB
TableC

is there any way to get this?

Thanks in advance

With Regards
Ashish Karalkar


____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

Responses

Browse pgsql-general by date

  From Date Subject
Next Message A. Kretschmer 2007-01-10 16:40:40 Re: Foreign Key Identification
Previous Message Joshua D. Drake 2007-01-10 15:58:28 Re: SP in PostgreSQL