Re: Query that will not run a ValuePerCall SRF to completion?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Query that will not run a ValuePerCall SRF to completion?
Дата
Msg-id 3723866.1633218265@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Query that will not run a ValuePerCall SRF to completion?  (Chapman Flack <chap@anastigmatix.net>)
Список pgsql-hackers
Chapman Flack <chap@anastigmatix.net> writes:
> I'm having difficulty coming up with a query that actually doesn't
> run the SRF to completion.

From memory, nodeFunctionscan always populates the tuplestore immediately.
I've looked into changing that but not got it done.

If you write the function in the targetlist, ie

    select srf(...) limit N;

I think it will act more like you expect.

            regards, tom lane



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

Предыдущее
От: Chapman Flack
Дата:
Сообщение: Query that will not run a ValuePerCall SRF to completion?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: 002_types.pl fails on some timezones on windows