Re: FETCH FIRST clause PERCENT option

Поиск
Список
Период
Сортировка
От Surafel Temesgen
Тема Re: FETCH FIRST clause PERCENT option
Дата
Msg-id CALAY4q8mr_uVgY5UaFh-iZWDvUZpQ2YduCJUKZ3d5dpUQHR1fA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: FETCH FIRST clause PERCENT option  (Andres Freund <andres@anarazel.de>)
Ответы Re: FETCH FIRST clause PERCENT option
Список pgsql-hackers


On Thu, Aug 16, 2018 at 5:34 PM, Andres Freund <andres@anarazel.de> wrote:

Won't that have rather massive issues with multiple evaluations of
clauses in the query?  Besides being really expensive?

The plan re-scane after first execution I can’t see issue for multiple execution of a clause in this case


I think you'd have to instead spill the query results into a tuplestore

The downside of it is all the result have to be stored even if needed tuple is a fraction of it and also store it for longer so the choice became memory or cpu utilization  


- Andres
Regards
Surafel

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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Pluggable Storage - Andres's take
Следующее
От: Andres Freund
Дата:
Сообщение: Re: FETCH FIRST clause PERCENT option