Re: [SQL] using constraint based paritioning to fix EAV type schemas? (view inheritance and constraints)

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas DCP SD
Тема Re: [SQL] using constraint based paritioning to fix EAV type schemas? (view inheritance and constraints)
Дата
Msg-id E1539E0ED7043848906A8FF995BDA579012B4435@m0143.s-mxs.net
обсуждение исходный текст
Ответ на Re: [SQL] using constraint based paritioning to fix EAV type schemas? (view inheritance and constraints)  ("Andrew Hammond" <andrew.george.hammond@gmail.com>)
Список pgsql-hackers
> I've seen a few EAV designs in practice. They've all been
> problematic. I'd like to have a better way of dealing with
> them. Which is why I'm tentatively suggesting support for
> inheritance and constraints in views. If there's some other
> way to achieve constraint based exclusion across a UNION of
> heterogenous tables, I'd love to hear it.

If you do your own rules anyway, why can't you use inheritance and
create the rules
on the parent table and the constraints on the child tables ?

You can still use the child tables directly if you want.

Andreas


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

Предыдущее
От: "Zeugswetter Andreas DCP SD"
Дата:
Сообщение: Re: Possible Typecasting Bug with coalesce()
Следующее
От: "Zeugswetter Andreas DCP SD"
Дата:
Сообщение: Re: [SQL] using constraint based paritioning to fix EAV type schemas? (view inheritance and constraints)