Re: Viewing Foreign key constraints in psql

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Viewing Foreign key constraints in psql
Дата
Msg-id 23980.1037978286@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Viewing Foreign key constraints in psql  (Ludwig Lim <lud_nowhere_man@yahoo.com>)
Список pgsql-novice
Ludwig Lim <lud_nowhere_man@yahoo.com> writes:
>   How do I view the foreign key constraints (name and
> definition) in psql? I can only see the triggers
> created by the constraint when I use the "\d <table>"
> command in psql.

In PG versions < 7.3, you don't: the system doesn't retain any concept
of the foreign key constraint as such, only the triggers that implement
it.  In 7.3 there is a pg_constraint table with an actual entry for each
foreign key constraint.

            regards, tom lane

В списке pgsql-novice по дате отправления:

Предыдущее
От: Joshua Daniel Franklin
Дата:
Сообщение: How does "SELECT ... FOR UPDATE" work?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: How does "SELECT ... FOR UPDATE" work?