Re: generate_series from now to infinity...

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: generate_series from now to infinity...
Дата
Msg-id 29572.1242582802@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: generate_series from now to infinity...  (hubert depesz lubaczewski <depesz@depesz.com>)
Список pgsql-hackers
hubert depesz lubaczewski <depesz@depesz.com> writes:
> why is it not limiting generate_series in the second example?

nodeFunctionscan.c sucks the whole SRF output into a tuplestore before
returning any of it.  In principle you could do something different for
a value-per-call SRF, but it would require a second whole code path
(or else major refactoring of ExecMakeTableFunctionResult and related
code).  The performance implications are unclear too.

I seem to recall there was some discussion of this point when that code
was first written, but nobody bothered to do anything about it.
        regards, tom lane


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

Предыдущее
От: "Dickson S. Guedes"
Дата:
Сообщение: Re: generate_series from now to infinity...
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: Implementation of GROUPING SETS (T431: Extended grouping capabilities)