Re: Select not using primary key index

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Select not using primary key index
Дата
Msg-id 20020314075101.D433-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Select not using primary key index  (Sergio Freue <sfreue@yahoo.com>)
Список 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 по дате отправления:

Предыдущее
От: Doug McNaught
Дата:
Сообщение: Re: JDBC Prepared Statement Bug
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Question about function