Re: Can i Force to postgrsql to use a certain index?

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Pau Marc Munoz Torres <paumarc(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Can i Force to postgrsql to use a certain index?
Date: 2007-12-04 16:37:21
Message-ID: 47558241.4010101@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Pau Marc Munoz Torres wrote:
> Hi every body
>
> it is possible to force to postgresql to use a certain index? I know
> that in mysql exits Force index (index_name) option for select queries
> SELECT * FROM precalc FORCE INDEX (hladrb50101) ;
>
> any of you have used this?

No. PostgreSQL will not allow you to do that. Not to mention, a SELECT *
without a where clause will always scan the whole table so an Index
would be useless.

Joshua D. Drake

>
> thanks
>
> pau
>
>
> --
> Pau Marc Muñoz Torres
>
> Laboratori de Biologia Computacional
> Institut de Biotecnologia i Biomedicina Vicent
> Villar
> Universitat Autonoma de Barcelona
> E-08193 Bellaterra (Barcelona)
>
> telèfon: 93 5812807
> Email : paumarc(dot)munoz(at)bioinf(dot)uab(dot)cat <mailto:paumarc(dot)munoz(at)bioinf(dot)uab(dot)cat>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Sam Mason 2007-12-04 16:40:14 Re: difficulty extracting variable-sized field on triggered row
Previous Message Pau Marc Munoz Torres 2007-12-04 16:34:08 Can i Force to postgrsql to use a certain index?