Re: information_schema.referential_constraints contains NULLs
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: information_schema.referential_constraints contains NULLs |
| Дата | |
| Msg-id | 934.1318606651@sss.pgh.pa.us обсуждение |
| Ответ на | information_schema.referential_constraints contains NULLs (CG <cgg007@yahoo.com>) |
| Список | pgsql-general |
CG <cgg007@yahoo.com> writes:
> For some of the referential constraints listed in my information_schema.referential_constraints table the values for
thefields unique_constraint_catalog, unique_constraint_schema, and unique_constraint_name are NULL. There doesn't seem
tobe any rhyme or reason to which ones have values and which ones don't. They should all have values, right? Any ideas
whatcould be going on?
PG will allow a foreign key constraint to be constructed when there is a
unique index for the referenced column(s). The unique index could have
been constructed via a UNIQUE or PRIMARY KEY constraint, or via a plain
old CREATE UNIQUE INDEX command. In the latter case there is no
constraint for the information_schema to show.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера