| От | 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
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера