Re: Any reason not to use inheritance? - Mailing list pgsql-general

From jao@geophile.com
Subject Re: Any reason not to use inheritance?
Date
Msg-id 1095718579.414f56b376003@geophile.com
Whole thread Raw
In response to Re: Any reason not to use inheritance?  (Thomas F.O'Connell <tfo@sitening.com>)
Responses Re: Any reason not to use inheritance?  (David Helgason <david@uti.is>)
Re: Any reason not to use inheritance?  (Thomas F.O'Connell <tfo@sitening.com>)
List 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 by date:

Previous
From: Christopher Browne
Date:
Subject: Re: using database for queuing operations?
Next
From: "Jim C. Nasby"
Date:
Subject: Re: using database for queuing operations?