Re: [HACKERS] Idle idea for a feature

2008-03-06 Thread Bruce Momjian
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

Re: [HACKERS] Idle idea for a feature

2008-03-06 Thread Bruce Momjian
Jim Nasby wrote: On Apr 10, 2007, at 9:48 AM, Stephen Frost wrote: Referenced by: loc_base_clin_loc_base_id_fkey FOREIGN KEY (loc_base_id) BY wdm_networx.loc_base_clin(loc_base_id) /| \/|\ Referenced

Re: [HACKERS] Idle idea for a feature

2008-03-06 Thread Alvaro Herrera
Bruce Momjian wrote: Tom Lane wrote: 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 We have a patch for this:

Re: [HACKERS] Idle idea for a feature

2008-03-06 Thread Bruce Momjian
Alvaro Herrera wrote: Bruce Momjian wrote: Tom Lane wrote: 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 We have a patch for this:

Re: [HACKERS] Idle idea for a feature

2007-04-12 Thread Jim Nasby
On Apr 10, 2007, at 9:48 AM, Stephen Frost wrote: Referenced by: loc_base_clin_loc_base_id_fkey FOREIGN KEY (loc_base_id) BY wdm_networx.loc_base_clin(loc_base_id) /| \/|\ Referenced column(s) in *this* table

[HACKERS] Idle idea for a feature

2007-04-10 Thread Tom Lane
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

Re: [HACKERS] Idle idea for a feature

2007-04-10 Thread Stephen Frost
* Tom Lane ([EMAIL PROTECTED]) wrote: 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

Re: [HACKERS] Idle idea for a feature

2007-04-10 Thread Guillaume Smet
On 4/10/07, Tom Lane [EMAIL PROTECTED] wrote: 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. Sure. We wrote a stored proc to do that

Re: [HACKERS] Idle idea for a feature

2007-04-10 Thread NikhilS
Hi, On 4/11/07, Guillaume Smet [EMAIL PROTECTED] wrote: On 4/10/07, Tom Lane [EMAIL PROTECTED] wrote: 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