From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Andreas Joseph Krogh <andreas@visena.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: List all columns referencing an FK
Date: Mon, 9 Apr 2018 13:45:08 -0400
Message-ID: <ce8f656d-b6d3-5481-8a98-6c92e92afdbd@2ndquadrant.com> (raw)
In-Reply-To: <VisenaEmail.a.56e72d528104dec7.16174f5fd5e@tc7-visena>
References: <VisenaEmail.a.56e72d528104dec7.16174f5fd5e@tc7-visena>
On 2/8/18 05:31, Andreas Joseph Krogh wrote:
> Back in 2008 I asked this
> question: http://www.postgresql-archive.org/Finding-all-tables-that-have-foreign-keys-referencing-a-table-td21...> I wonder, is this now possible using information_schema only, or are
> there still pieces missing in the standard holding this back?
I think you'll still have the same problems if the same constraint name
appears more than once per schema.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: peter.eisentraut@2ndquadrant.com, andreas@visena.com
Subject: Re: List all columns referencing an FK
In-Reply-To: <ce8f656d-b6d3-5481-8a98-6c92e92afdbd@2ndquadrant.com>
References: <VisenaEmail.a.56e72d528104dec7.16174f5fd5e@tc7-visena> <ce8f656d-b6d3-5481-8a98-6c92e92afdbd@2ndquadrant.com>
* 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