Re: [PERFORM] 1-/2-dimensional indexes for common columns, rationale?

2008-03-26 Thread PFC
create index foo1 on bla (a); create index foo2 on bla (b); create index foo3 on bla (a,b); You say you need faster INSERT performance. Getting rid of some indexes is a way, but can you tell a bit more about your hardware setup ? For instance, if you only have one HDD, put an extra HDD in

Re: [PERFORM] 1-/2-dimensional indexes for common columns, rationale?

2008-03-26 Thread Craig Ringer
Marinos Yannikos wrote: Which version do you have? Since 8.1 pg can use a so called 'bitmap index scan', because of this feature i guess you don't need the index foo3. (if you have 8.1 or higher) 8.3.1 - foo3 is being used though in presence of both foo1 and foo2, so I'd suppose that it's a b

Re: [PERFORM] 1-/2-dimensional indexes for common columns, rationale?

2008-03-26 Thread A. Kretschmer
am Wed, dem 26.03.2008, um 16:15:20 +0100 mailte Marinos Yannikos folgendes: > A. Kretschmer schrieb: > >>create index foo1 on bla (a); > >>create index foo2 on bla (b); > >>create index foo3 on bla (a,b); > >>[...] > > > >Which version do you have? Since 8.1 pg can use a so called 'bitmap > >inde

Re: [PERFORM] 1-/2-dimensional indexes for common columns, rationale?

2008-03-26 Thread Marinos Yannikos
A. Kretschmer schrieb: create index foo1 on bla (a); create index foo2 on bla (b); create index foo3 on bla (a,b); [...] Which version do you have? Since 8.1 pg can use a so called 'bitmap index scan', because of this feature i guess you don't need the index foo3. (if you have 8.1 or higher)

Re: [PERFORM] 1-/2-dimensional indexes for common columns, rationale?

2008-03-26 Thread Matthew
On Wed, 26 Mar 2008, A. Kretschmer wrote: create index foo1 on bla (a); create index foo2 on bla (b); create index foo3 on bla (a,b); Which version do you have? Since 8.1 pg can use a so called 'bitmap index scan', because of this feature i guess you don't need the index foo3. (if you have 8.1

Re: [PERFORM] 1-/2-dimensional indexes for common columns, rationale?

2008-03-26 Thread A. Kretschmer
am Wed, dem 26.03.2008, um 15:18:53 +0100 mailte Marinos Yannikos folgendes: > Hello, > > we have several indexes such as: > > create index foo1 on bla (a); > create index foo2 on bla (b); > create index foo3 on bla (a,b); > > They are all used often by frequently used queries (according to >

[PERFORM] 1-/2-dimensional indexes for common columns, rationale?

2008-03-26 Thread Marinos Yannikos
Hello, we have several indexes such as: create index foo1 on bla (a); create index foo2 on bla (b); create index foo3 on bla (a,b); They are all used often by frequently used queries (according to pg_statio_user_indexes), but we need somewhat higher INSERT/UPDATE performance (having tuned mos