Re: Select not using primary key index

From: Carl van Tast <vanTast(at)Pivot(dot)at>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Select not using primary key index
Date: 2002-03-14 16:35:00
Message-ID: o2k19uk4gsd26fsmd8q26v9ld46bqjpacg@4ax.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 14 Mar 2002 00:07:54 -0300, Sergio Freue <sfreue(at)yahoo(dot)com>
wrote:
>create table testBig (id1 smallint not null,id2 smallint not
>null,primary key (id1, id2));
>
>Add about 1,500,000 records
>[...]
>select * from testBig where id1 = 1585 and id2 = 42;

select *
from testBig
where id1 = 1585::smallint and id2 = 42::smallint;

HTH,
Carl van Tast

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Doug McNaught 2002-03-14 16:48:29 Re: JDBC Prepared Statement Bug
Previous Message Dave Smith 2002-03-14 16:12:49 Re: JDBC Prepared Statement Bug