Re: How foreign key info is stored

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How foreign key info is stored
Дата
Msg-id 17662.1050608493@sss.pgh.pa.us
обсуждение исходный текст
Ответ на How foreign key info is stored  (Ken Williams <ken@mathforum.org>)
Ответы Re: How foreign key info is stored  (Ken Williams <ken@mathforum.org>)
Список pgsql-general
Ken Williams <ken@mathforum.org> writes:
> 1) In postgres 7.1.3, how can I access the foreign key relationships
> among tables?

The only way is to reverse-engineer it from the contents of pg_trigger.
7.3's contrib/adddepend will help you with this.

> 2) Is foreign key definition working properly via 'ALTER TABLE <table>
> ADD ...' in 7.3.2?

No, there's a bug there --- ALTER ADD COLUMN neglects to process any
foreign-key clauses you might have written.  This is fixed for 7.3.3.

            regards, tom lane


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

Предыдущее
От: Ken Williams
Дата:
Сообщение: How foreign key info is stored
Следующее
От: "Williams, Travis L, NPONS"
Дата:
Сообщение: Really simple TZ question