Tom Lane wrote: > psql's \d command tells you about outgoing foreign key constraints > (ie, ones referencing another table from this one). It doesn't tell > you about incoming ones (ie, ones where another table references this > one). ISTM it'd be a good idea if it did, as "are there any incoming > foreign keys" seems to be a question we constantly ask when solving > update-performance problems, and there isn't any easy way to check for > such. I'm not real sure what the printout should look like, though.
Added to TODO: o Have \d show foreign keys that reference a table's primary key http://archives.postgresql.org/pgsql-hackers/2007-04/msg00424.php -- Bruce Momjian <[EMAIL PROTECTED]> http://momjian.us EnterpriseDB http://postgres.enterprisedb.com + If your life is a hard drive, Christ can be your backup. + -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers