Re: Indexes not working, please help. - Mailing list pgsql-general

From Ricardo Junior
Subject Re: Indexes not working, please help.
Date
Msg-id Pine.LNX.4.44.0207051039350.15309-100000@ricardo.localdomain
Whole thread Raw
In response to Re: Indexes not working, please help.  (Antonis Antoniou <a.antoniou@albourne.com>)
List pgsql-general
    Antonis,

    That was not the case, it appears that PostgreSQL have problems
matching the type on the table and on the queries. For instance, cod is a
bigserial primary key, so it does has a index but when you query it
without specifying ::bigint after the value, I don't know why, PostgreSQL
won't use it's indexes.

    With the "serial" type it works perfectly.

    Thanks anyway,

    Ricardo.

On Fri, 5 Jul 2002, Antonis Antoniou wrote:

> Hi,
> Is your index on the attribute cod? If not then try this:
> CREATE INDEX teste ON medidas (cod);
>
> Thanks
> Antonis




pgsql-general by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: Re: I am being interviewed by OReilly
Next
From: Josh Jore
Date:
Subject: Re: two primairy key in one table ?