| От | Tom Lane |
|---|---|
| Тема | Re: Using "object orientated" tables? |
| Дата | |
| Msg-id | 39422.1652233803@sss.pgh.pa.us обсуждение |
| Ответ на | Using "object orientated" tables? (Simon Connah <simon.n.connah@protonmail.com>) |
| Ответы |
Re: Using "object orientated" tables?
|
| Список | pgsql-novice |
Simon Connah <simon.n.connah@protonmail.com> writes:
> I was wondering what the community thought of using table inheritance in PostgreSQL? Is it considered bad practice
thesedays?
Mmm ... not if the various caveats[1] don't bother you. The biggest
stumbling block for most people, I think, is that you can't have
foreign keys that reference the whole inheritance hierarchy.
regards, tom lane
[1] https://www.postgresql.org/docs/current/ddl-inherit.html#DDL-INHERIT-CAVEATS
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера