Re: query planner weirdness?

Поиск
Список
Период
Сортировка
От Steve Atkins
Тема Re: query planner weirdness?
Дата
Msg-id 93BE1FE6-8054-455F-81BD-B843507EF6B1@blighty.com
обсуждение исходный текст
Ответ на Re: query planner weirdness?  ("Bob Duffey" <bobduffey68@gmail.com>)
Список pgsql-general
On Jun 28, 2008, at 12:53 AM, Bob Duffey wrote:
>
> If you're iterating through the records with a cursor, the plan may
> be different, IIRC - weighted to provide first row quickly, as opposed
> to the query that was run that's weighted to provide last row quickly.
>
> I agree, and I was hoping that would be the case, but as it happens
> it wasn't.  Anyway, reducing random_page_cost seems to have resulted
> in the "right" plan being selected.
>

The original query you mentioned was not using a cursor, though, it
was just a select.

Did you try it using a cursor?

Cheers,
   Steve


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: query planner weirdness?
Следующее
От: "David Rowley"
Дата:
Сообщение: Re: dblink to non postgresql dbms