Re: Question whether this is a known problem in 7.1.2

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rachit Siamwalla <rachit(at)ensim(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Paul Menage <pmenage(at)ensim(dot)com>
Subject: Re: Question whether this is a known problem in 7.1.2
Date: 2002-06-08 15:52:50
Message-ID: 14010.1023551570@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Rachit Siamwalla <rachit(at)ensim(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-06-08 15:57:07 Re: Roadmap for a Win32 port
Previous Message Tom Lane 2002-06-08 15:48:20 Re: Roadmap for a Win32 port