Re: Foreign Keys

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Ryan Mahoney <ryan(at)paymentalliance(dot)net>, pgsql-general(at)postgresql(dot)org
Subject: Re: Foreign Keys
Date: 2001-07-17 20:47:46
Message-ID: 26440.995402866@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
>> How can you get a listing of foreign keys to a table?

> We haven't figure out a good way yet.

You can figure it out by rooting through pg_triggers looking for RI
triggers that reference your table ... but of course this is pretty
painful and ugly. Sometime we should build a view to do it for you.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-07-17 20:49:45 Re: undeleteable records
Previous Message Tom Lane 2001-07-17 20:34:29 Re: psql -l