Re: Select not using primary key index - Mailing list pgsql-general

From Stephan Szabo
Subject Re: Select not using primary key index
Date
Msg-id 20020314075101.D433-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Select not using primary key index  (Sergio Freue <sfreue@yahoo.com>)
List pgsql-general
On Thu, 14 Mar 2002, Sergio Freue wrote:

> I'm trying to run a simple query on a big (1,500,000 rows) table and I'm
> getting bad performance.
>
> The table I'm using is the minimum necessary to show the problem:
>
>
> create table testBig (id1 smallint not null,id2 smallint not
> null,primary key (id1, id2));


You'll need to either explicitly cast the constants to smallint
or single quote them to get them to match up in type. There've been
past discussions on this in the mailing lists if you want more info.


pgsql-general by date:

Previous
From: Doug McNaught
Date:
Subject: Re: JDBC Prepared Statement Bug
Next
From: Tom Lane
Date:
Subject: Re: Question about function