Inheritance - Mailing list pgsql-hackers

From Jan Johansson
Subject Inheritance
Date
Msg-id CAGbXvMY_Ca0XtuENdrCznTgYs-YzWbLEz5nQSzcNpP-H7BbCbg@mail.gmail.com
Whole thread Raw
Responses Re: Inheritance
List pgsql-hackers
Hi,

I've been reading some threads about inheritance, and how complicated it seems to let child (children) to inherit constraints and indexes (behaviors). In fact this seems to have been the issue for years, with no resolution.

However, inheritance is a very good feature, and it would be great to have it feature complete.

To try to unlock the feature, to be more complete, how about introducing restriction to inheritance like:

 - Allow single (behavior) inheritance (model here is quite a few modern languages, such as C#, D, ...)
 - Allow multiple declarative inheritance (interface like, the inheritance almost works like this today though)

If, with these restrictions (or maybe only the first), do you think that it will simplify implementation and make it more feature complete?

Kind regards,
Jan Johansson

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Latent cache flush hazard in RelationInitIndexAccessInfo
Next
From: Tatsuo Ishii
Date:
Subject: Re: Parallel query