Re: Multicolum index and primary key

From: Michele Bendazzoli <mickymouse(at)mickymouse(dot)it>
To: Tomasz Myrta <jasiek(at)klaster(dot)net>
Subject: Re: Multicolum index and primary key
Date: 2003-11-18 11:24:23
Message-ID: 1069154662.8336.64.camel@mickymouse.sintel
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Mon, 2003-11-17 at 18:13, Tomasz Myrta wrote:
> Dnia 2003-11-17 19:00, Użytkownik Michele Bendazzoli napisał:
> > a is always present in the queries ... and other that (a, ab, abc) i
> > have only to query (ac): so I think I have to index separately only
> > (ac).
>
> For such cases consider changing primary key from (a,b,c) into (a,c,b)

b,c are exactly simmetric, so if I change the primary key to (a,c,b) I
have to index separately (a,b) ... rigth?

ciao, Michele

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Bruno Wolff III 2003-11-18 12:56:42 Re: Quota query with decent performance?
Previous Message Peter Eisentraut 2003-11-18 06:22:41 Re: multiple function declarations