Re: how to find foreign key details (column, that is)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: how to find foreign key details (column, that is)
Date: 2008-12-14 20:02:35
Message-ID: 2373.1229284955@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net> writes:
> This is what my 8.3 manual says:

> conkey int2[] pg_attribute.attnum If a table constraint, list of columns which the constraint constrains

> From that I wouldn't have figured it'd apply to foreign keys
> as well. So I assume it is fair to say that "foreign keys
> are one type of table constraint", right ?

Right. I think what the comment is actually trying to point out is that
conkey isn't relevant to domain constraints, which also appear in
pg_constraint.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Raymond O'Donnell 2008-12-14 20:31:44 Re: application readable error message
Previous Message Karsten Hilbert 2008-12-14 19:57:39 Re: how to find foreign key details (column, that is)