Re: BUG #6483: Rows being evaluated, although being outside the LIMIT / OFFSET boundaries

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #6483: Rows being evaluated, although being outside the LIMIT / OFFSET boundaries
Дата
Msg-id 25657.1329946832@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #6483: Rows being evaluated, although being outside the LIMIT / OFFSET boundaries  (Marti Raudsepp <marti@juffo.org>)
Ответы Re: BUG #6483: Rows being evaluated, although being outside the LIMIT / OFFSET boundaries  (Marti Raudsepp <marti@juffo.org>)
Список pgsql-bugs
Marti Raudsepp <marti@juffo.org> writes:
> According to this model, evaluating SELECT clause fields for *all*
> found rows is done in step 5, whereas LIMIT/OFFSET are only applied
> later at step 9. So we're already bending the rules here (in general
> we don't do such optimizations around volatile functions). The worst
> thing is that it's inconsistent -- the LIMIT gets applied when
> computing the SELECT list, but OFFSET doesn't.

On what grounds do you say that?  LIMIT and OFFSET are practically the
same thing internally, and are certainly applied in the same way.

            regards, tom lane

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

Предыдущее
От: Marti Raudsepp
Дата:
Сообщение: Re: BUG #6483: Rows being evaluated, although being outside the LIMIT / OFFSET boundaries
Следующее
От: Marti Raudsepp
Дата:
Сообщение: Re: BUG #6483: Rows being evaluated, although being outside the LIMIT / OFFSET boundaries