Re: [HACKERS] INHERITS doesn't offer enough functionality

2000-10-23 Thread Chris
Marten Feldtmann wrote: > > You'll still have to do 6 queries in postgres because it does not return > > fields in sub-classes. > > Practically this is not such a big problem as one might think. > WHEN you have a persistance framework you tell your framework, > that every attribut is located

Re: [HACKERS] INHERITS doesn't offer enough functionality

2000-10-23 Thread Marten Feldtmann
Chris schrieb: > > > The point is: this is classic, but noone does it > > like this if your really have a larger hierarchy of > > classes. You'll not get any good performance, when > > solving an association in your oo > > program, because the framework has to query against > > each table: 6 t

Re: [HACKERS] INHERITS doesn't offer enough functionality

2000-10-23 Thread Marten Feldtmann
Hiroshi Inoue schrieb: > > Chris wrote: > > > It's pretty clear to me that an inherited index should be only one > > index. There may be a case for optional non-inherited indexes (CREATE > > INDEX ON ONLY foobar), but if the index is inherited, it is just one > > index. > > > > At the end of t

Re: [HACKERS] INHERITS doesn't offer enough functionality

2000-10-20 Thread Chris
> The point is: this is classic, but noone does it > like this if your really have a larger hierarchy of > classes. You'll not get any good performance, when > solving an association in your oo > program, because the framework has to query against > each table: 6 tables - 6 queries !!! :-(((

Re: [HACKERS] INHERITS doesn't offer enough functionality

2000-10-19 Thread Chris
Hiroshi Inoue wrote: > > At the end of the day though, the reason is only performance. The > > semantics should be the same no matter whether implemented as multiple > > indexes or not. Performance is much better with one index though.(*) > > > > Is it true ? > How to guarantee the uniqueness us

Re: [HACKERS] INHERITS doesn't offer enough functionality

2000-10-19 Thread Hiroshi Inoue
Chris wrote: > It's pretty clear to me that an inherited index should be only one > index. There may be a case for optional non-inherited indexes (CREATE > INDEX ON ONLY foobar), but if the index is inherited, it is just one > index. > > At the end of the day though, the reason is only performan

Re: [HACKERS] INHERITS doesn't offer enough functionality

2000-10-19 Thread Chris
It's pretty clear to me that an inherited index should be only one index. There may be a case for optional non-inherited indexes (CREATE INDEX ON ONLY foobar), but if the index is inherited, it is just one index. At the end of the day though, the reason is only performance. The semantics should b

Re: [HACKERS] INHERITS doesn't offer enough functionality

2000-10-18 Thread Oliver Elphick
Alfred Perlstein wrote: >* Oliver Elphick <[EMAIL PROTECTED]> [001018 04:59] wrote: >> Do you mean that inheriting tables should share a single index with their >> ancestors, or that each descendant should get a separate index on the >> same pattern as its ancestors'? >> >> With the

Re: [HACKERS] INHERITS doesn't offer enough functionality

2000-10-18 Thread Alfred Perlstein
* Oliver Elphick <[EMAIL PROTECTED]> [001018 04:59] wrote: > Bruce Momjian wrote: > >> Alfred Perlstein wrote: > >> > > >> > I noticed that INHERITS doesn't propogate indecies, It'd be nice > >> > if there was an toption to do so. > >> > >> Yep it would. Are you volunteering? > >>

Re: [HACKERS] INHERITS doesn't offer enough functionality

2000-10-18 Thread Oliver Elphick
Bruce Momjian wrote: >> Alfred Perlstein wrote: >> > >> > I noticed that INHERITS doesn't propogate indecies, It'd be nice >> > if there was an toption to do so. >> >> Yep it would. Are you volunteering? >> > >Added to TODO: > > * Allow inherited tables to inherit inde

Re: [HACKERS] INHERITS doesn't offer enough functionality

2000-10-17 Thread Chris
Alfred Perlstein wrote: > Thank you, it's not a big problem that this doesn't happen, but it'd > be nice to see it as an option when creating a table via inheritance. > > What about RULEs? I wouldn't really have a use for that but others > might. Actually it's a reasonably big deal. Apart from

Re: [HACKERS] INHERITS doesn't offer enough functionality

2000-10-16 Thread Alfred Perlstein
* Bruce Momjian <[EMAIL PROTECTED]> [001016 08:55] wrote: > > Alfred Perlstein wrote: > > > > > > I noticed that INHERITS doesn't propogate indecies, It'd be nice > > > if there was an toption to do so. > > > > Yep it would. Are you volunteering? > > > > Added to TODO: > > * Allow inher

Re: [HACKERS] INHERITS doesn't offer enough functionality

2000-10-16 Thread Bruce Momjian
> Alfred Perlstein wrote: > > > > I noticed that INHERITS doesn't propogate indecies, It'd be nice > > if there was an toption to do so. > > Yep it would. Are you volunteering? > Added to TODO: * Allow inherited tables to inherit index -- Bruce Momjian| ht