Re: "Overlaping" indexes - Mailing list pgsql-performance

From scott.marlowe
Subject Re: "Overlaping" indexes
Date
Msg-id Pine.LNX.4.33.0402021129520.19673-100000@css120.ihs.com
Whole thread Raw
In response to Re: "Overlaping" indexes  (Tomasz Myrta <jasiek@klaster.net>)
Responses Re: "Overlaping" indexes  (Tomasz Myrta <jasiek@klaster.net>)
List pgsql-performance
On Mon, 2 Feb 2004, Tomasz Myrta wrote:

> Dnia 2004-02-02 15:46, U?ytkownik Rigmor Ukuhe napisa3:
> > Hi,
> >
> > I have many indexes somehow overlaping like:
> > ... btree ("STATUS", "VISIBLE", "NP_ID");
> > ... btree ("STATUS", "VISIBLE");
> >
> > is perfomance gained by "more exact" index worth overhead with managing
> > indexes.
>
> The second (2 columns) index is useless - it's function is well done by
> the first one (3 columns).

Not entirely, since it only has to sort two columns, it will be smaller,
and will therefore be somewhat faster.

On the other hand, I've seen a lot of folks create multi column indexes
who didn't really understand how they work in Postgresql.


pgsql-performance by date:

Previous
From: Josh Berkus
Date:
Subject: Mainframe Linux + PostgreSQL
Next
From: Tomasz Myrta
Date:
Subject: Re: "Overlaping" indexes