Re: how to find foreign key details (column, that is) - Mailing list pgsql-general

From Tom Lane
Subject Re: how to find foreign key details (column, that is)
Date
Msg-id 1978.1229283471@sss.pgh.pa.us
Whole thread Raw
In response to how to find foreign key details (column, that is)  (Karsten Hilbert <Karsten.Hilbert@gmx.net>)
Responses Re: how to find foreign key details (column, that is)
List pgsql-general
Karsten Hilbert <Karsten.Hilbert@gmx.net> writes:
> I cannot, however, for the life of it find out how to learn
> the *column* the foreign key is on.

pg_constraint.conkey has the referencing columns' numbers.

            regards, tom lane

pgsql-general by date:

Previous
From: Ivan Sergio Borgonovo
Date:
Subject: from 2 keys to serial
Next
From: Karsten Hilbert
Date:
Subject: Re: how to find foreign key details (column, that is)