Re: Idle idea for a feature - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Idle idea for a feature
Date
Msg-id 200803070003.m2703MO27771@momjian.us
Whole thread Raw
In response to Idle idea for a feature  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Idle idea for a feature
List pgsql-hackers
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  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://postgres.enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


pgsql-hackers by date:

Previous
From: Bernd Helmle
Date:
Subject: Re: [PATCHES] Updatable views
Next
From: Bruce Momjian
Date:
Subject: Re: Idle idea for a feature