From: | Ricardo Junior <suga(at)netbsd(dot)com(dot)br> |
---|---|
To: | Antonis Antoniou <a(dot)antoniou(at)albourne(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Indexes not working, please help. |
Date: | 2002-07-05 13:42:18 |
Message-ID: | Pine.LNX.4.44.0207051039350.15309-100000@ricardo.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2002-07-05 14:16:52 | Re: Should next release by 8.0 (Was: Re: [GENERAL] I am being interviewed by OReilly ) |
Previous Message | Manfred Koizar | 2002-07-05 13:36:37 | Re: Efficient use of space in large table? |