Re: [SQL] query optimizer dont treat correctly OR

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: [SQL] query optimizer dont treat correctly OR
Дата
Msg-id 200404271635.39024.dev@archonet.com
обсуждение исходный текст
Ответ на query optimizer dont treat correctly OR  ("Luiz Rafael Culik Guimaraes" <culikr@brturbo.com>)
Список pgsql-general
On Tuesday 27 April 2004 15:48, Luiz Rafael Culik Guimaraes wrote:
> Hello folks
>
> See the command bellow. I use some thing simmilar about an decade on
> Oracle,
> Sybase, MSSQL, DB2, etc. But with  Postgresql , he generate an FULL TABLE
> SCAN,
> and consequenyly it take about 10 minutes to run (Very big table..)

> Why Post do this wrong julgment  with the initial command?
> Exist some thing that i can configure to to make postgres works correctly ?

You'll need to post the output of EXPLAIN ANALYSE for your query. This will
show how many rows PG thinks it will get back compared to how many it
actually gets back.

--
  Richard Huxton
  Archonet Ltd

В списке pgsql-general по дате отправления:

Предыдущее
От:
Дата:
Сообщение: Re: shadowing (like IB/Firebird)
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Unicode encoding