Re: Question whether this is a known problem in 7.1.2 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Question whether this is a known problem in 7.1.2
Date
Msg-id 14010.1023551570@sss.pgh.pa.us
Whole thread Raw
In response to Question whether this is a known problem in 7.1.2  (Rachit Siamwalla <rachit@ensim.com>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Roadmap for a Win32 port
Next
From: Bruce Momjian
Date:
Subject: Re: Roadmap for a Win32 port