Re: Cursor estimated row count

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Cursor estimated row count
Date: 2005-11-12 18:56:00
Message-ID: 20051112185600.GA92075@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, Nov 12, 2005 at 01:50:20PM -0500, Tom Lane wrote:
> Michael Fuhr <mike(at)fuhr(dot)org> writes:
> > An occasionally asked question is "How can I find out how many rows
> > a cursor will return?" to which the answer is "Fetch them all." But
> > what about a way to get the planner's estimate? Would anybody find
> > that useful?
>
> Given how far off it frequently is, I can't believe that any of the
> people who ask for the feature would find this a satisfactory answer :-(

That aside, do you see any problems with the code? Is it at least
returning the right wrong answer? ;-)

--
Michael Fuhr

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jonah H. Harris 2005-11-12 20:27:32 Re: CONNECT BY PRIOR
Previous Message Tom Lane 2005-11-12 18:55:04 Re: SIGSEGV taken on 8.1 during dump/reload