Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id CE5329F9D6D for ; Mon, 27 Aug 2007 00:48:38 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 61625-06 for ; Mon, 27 Aug 2007 00:48:35 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 1571E9F9594 for ; Mon, 27 Aug 2007 00:48:35 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l7R3mWjK012828; Sun, 26 Aug 2007 23:48:32 -0400 (EDT) To: Andreas cc: pgsql-sql@postgresql.org Subject: Re: List of FKeys ? In-reply-to: <46D20E56.10101@gmx.net> References: <46D20E56.10101@gmx.net> Comments: In-reply-to Andreas message dated "Mon, 27 Aug 2007 01:35:50 +0200" Date: Sun, 26 Aug 2007 23:48:32 -0400 Message-ID: <12827.1188186512@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/213 X-Sequence-Number: 29151 Andreas writes: > could I get a list of foreign keys that refer to a column? The information_schema views constraint_column_usage and referential_constraints might help you, or you could dive into the underlying system catalogs. regards, tom lane