Re: [PERFORM] noob inheritance question

2010-01-07 Thread Robert Haas
On Wed, Jan 6, 2010 at 6:53 PM, Zintrigue wrote: > I'm wondering if there's any performance penalty here There definitely is. Your design sounds pretty painful to me... adding a column referencing a side-table will be much nicer. > If anyone can offer in any insight as too how inheritance is ac

Re: [PERFORM] noob inheritance question

2010-01-06 Thread Nikolas Everett
Inheritance would only make sense if each of your categories had more columns. Say if you had a "wines" category and only they had a year column. Its probably not worth it for one or two columns but if you've got a big crazy heterogeneous tree of stuff then its probably appropriate. I'm with Ric

Re: [PERFORM] noob inheritance question

2010-01-06 Thread Richard Neill
Zintrigue wrote: I'm hoping the inheritance feature will be a nice alternative method for me to implement categories in particular database of products I need to keep updated. I suppose in MySQL I would probably do this by creating, for example, one table for the products, and then a table(s)

Re: [PERFORM] noob inheritance question

2010-01-06 Thread Richard Broersma
On Wed, Jan 6, 2010 at 3:53 PM, Zintrigue wrote: > I'm wondering if there's any performance penalty here, analogous to the > penalty of JOINs in a regular RDBMS (versus an ORDBMS). > If anyone can offer in any insight as too how inheritance is actually > executed (compared to JOINs especially), I'

[PERFORM] noob inheritance question

2010-01-06 Thread Zintrigue
Hello, I am complete noob to Postgres and to this list, and I hope this will be the appropriate list for this question. I'm hoping the inheritance feature will be a nice alternative method for me to implement categories in particular database of products I need to keep updated. I suppose in MySQL