dbTalk Databases Forums  

inheritance usefull?

comp.databases.postgresql comp.databases.postgresql


Discuss inheritance usefull? in the comp.databases.postgresql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sascha Bohnenkamp
 
Posts: n/a

Default inheritance usefull? - 01-20-2009 , 09:16 AM






Hi,

I am thinking of using the inheritance feature of PQ but have some
problems with it.
As far as I read the documentation foreign-key support, row-locking,
indexing etc. is very limited or not completly available with
inheritance.
From this information I get the feeling that inheritance is not realy
maintained or depreceated in some way.
Should I go for a real relational model instead?

thanks for any answers

Sascha

Reply With Quote
  #2  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: inheritance usefull? - 01-21-2009 , 11:26 AM






Sascha Bohnenkamp <asbohnenkamp (AT) gmx (DOT) de> wrote:
Quote:
I am thinking of using the inheritance feature of PQ but have some
problems with it.
As far as I read the documentation foreign-key support, row-locking,
indexing etc. is very limited or not completly available with
inheritance.
From this information I get the feeling that inheritance is not realy
maintained or depreceated in some way.
Should I go for a real relational model instead?
I guess it depends what you want.

Inheritance is probably good for some things, like when you want
to make sure that the definition of "inherited" columns stays the same
between parent and child, or you want to make use of the feature that
querying the parent will return child rows.
For example, if you want to implement partitioning.

If you don't need these features, it's probably best to not use it,
because it does not always "work the way you expect"; basically parent
and child are independent objects for most purposes.

I don't believe that the feature is deprecated or likely to vanish,
I'd rather say that it dows not 100% integrate with other PostgreSQL
behaviour.

Yours,
Laurenz Albe


Reply With Quote
  #3  
Old   
Sascha Bohnenkamp
 
Posts: n/a

Default Re: inheritance usefull? - 01-27-2009 , 09:07 AM




Quote:
I don't believe that the feature is deprecated or likely to vanish,
I'd rather say that it dows not 100% integrate with other PostgreSQL
behaviour.
thank you that realy did help to decide

I was just wondering about it because it seems to be unchanged for
more than ten years if I saw it right .. telling me that it may
integrate better in some future version.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.