| От | Tom Lane |
|---|---|
| Тема | Re: Indexes and Inheritance |
| Дата | |
| Msg-id | 21594.1165532976@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Indexes and Inheritance (Erik Jones <erik@myemma.com>) |
| Список | pgsql-general |
Erik Jones <erik@myemma.com> writes:
> No. In addition, child tables do not inherit primary keys. Think of it
> like this: if you did a \d to describe a table that you were going to
> use as a parent table in an inheritance chain, the child table would get
> everything in the table listing the columns but nothing beneath the table.
Not quite. CHECK constraints (and NOT NULL ones too) will be inherited.
The main reason we don't yet inherit indexes/unique constraints is that
the uniqueness would only be per-table, which is not what you'd expect.
Eventually someone will think of a way to fix that ...
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера