Re: Question whether this is a known problem in 7.1.2

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Question whether this is a known problem in 7.1.2
Дата
Msg-id 14010.1023551570@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Question whether this is a known problem in 7.1.2  (Rachit Siamwalla <rachit@ensim.com>)
Список pgsql-hackers
Rachit Siamwalla <rachit@ensim.com> writes:
> There are 2 items that match the criteria, and you do a LIMIT 2, it
> scans the whole table as well. Limit 1 returns quickly. Basically it
> seems like postgres is looking for one more item than it needs to. 

This is not a bug; or at least it's not something I'm prepared to break
other things to change.

If you can figure out a way to change nodeLimit.c to not get confused
about change-of-fetch-direction without the extra fetch, then send a
patch.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Roadmap for a Win32 port
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Roadmap for a Win32 port