Re: Any reason not to use inheritance?
От | jao@geophile.com |
---|---|
Тема | Re: Any reason not to use inheritance? |
Дата | |
Msg-id | 1095718579.414f56b376003@geophile.com обсуждение исходный текст |
Ответ на | Re: Any reason not to use inheritance? (Thomas F.O'Connell <tfo@sitening.com>) |
Ответы |
Re: Any reason not to use inheritance?
Re: Any reason not to use inheritance? |
Список | pgsql-general |
Quoting "Thomas F.O'Connell" <tfo@sitening.com>: > Just beware that inheritance is not a complete methodology in postgres. > The implementation has limitations. For instance, indexes in parent > tables will not be inherited by children. > > I've yet to encounter a scenario that actually required inheritance. > I've used it a few times, but when I have, the end result always > required a bit more work because of the incomplete aspects of the > postgres implementation (namely constraints and indexes). Could you expand on this? All indexes and constraints would be declared on the child tables. Nearly all table reference would be to the child tables. (So why use inheritance at all? If for no other reason, all the common columns would be declared in one place.) Jack Orenstein ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
В списке pgsql-general по дате отправления: