From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | "alexandre paes :: aldeia digital" <alepaes(at)aldeiadigital(dot)com(dot)br>, pgsql-sql(at)postgresql(dot)org |
Subject: | Re: LIMIT Optimization |
Date: | 2002-01-25 17:54:57 |
Message-ID: | 200201251754.g0PHsvG01436@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > So it forces our LIMIT optimization, without limiting the number of rows
> > returned. That seems to be of questionable value. The only value I can
> > see for it is for CURSOR queries but I don't think we can start
> > returning rows from even a cursor until the entire query is done
> > executing.
>
> Not so at all. However, CURSORs are already optimized on the assumption
> that not all the rows will actually get fetched.
So, it is only valuable for cursors or can we return results before the
entire query finishes for non-cursors. The "No so at all" part has me
confused.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2002-01-25 17:58:16 | Re: LIMIT Optimization |
Previous Message | Tom Lane | 2002-01-25 17:52:11 | Re: LIMIT Optimization |