Re: Join performance

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Join performance
Дата
Msg-id 25002.1194567305@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Join performance  ("Steinar H. Gunderson" <sgunderson@bigfoot.com>)
Ответы Re: Join performance  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
"Steinar H. Gunderson" <sgunderson@bigfoot.com> writes:
> On Thu, Nov 08, 2007 at 04:47:09PM -0600, Pepe Barbe wrote:
>> I am having an issue on PostgreSQL 8.0.12. In the past we had performance
>> issues with the query planner for queries on some tables where we knew we
>> had indexes and it was doing a sequential scan, and for this reason we
>> issue "SET enable_seqscan = FALSE" for some queries.

> This is a bad idea in general.

Indeed.  A less brute-force way of getting the planner to favor
indexscans is to reduce random_page_cost ... have you experimented
with that?

Also, consider updating to 8.2.x, which has an improved cost model
for indexscans and will more often make the correct choice without
such shenanigans.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Join performance
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Join performance