Karsten Hilbert <Karsten.Hilbert@xxxxxxx> 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 -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general