From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andreas <maps.on@gmx.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: List of FKeys ?
Date: Sun, 26 Aug 2007 23:48:32 -0400
Message-ID: <12827.1188186512@sss.pgh.pa.us> (raw)
In-Reply-To: <46D20E56.10101@gmx.net>
References: <46D20E56.10101@gmx.net>
Andreas <maps.on@gmx.net> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, maps.on@gmx.net
Subject: Re: List of FKeys ?
In-Reply-To: <12827.1188186512@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox