| От | Andrew Gierth |
|---|---|
| Тема | Re: FETCH FIRST clause PERCENT option |
| Дата | |
| Msg-id | 8736ve4bea.fsf@news-spur.riddles.org.uk обсуждение |
| Ответ на | Re: FETCH FIRST clause PERCENT option (Andres Freund <andres@anarazel.de>) |
| Список | pgsql-hackers |
>>>>> "Andres" == Andres Freund <andres@anarazel.de> writes: Andres> I think you'd have to instead spill the query results into a Andres> tuplestore (like we do for FOR HOLD queries at end of xact), Andres> and then do the computations based on that. The approach I've suggested to some people who wanted to look into this was to inject a window function call into the query, and teach the Limit node to be able to stop on a boolean condition (which would be based on that function result). This method should also work for WITH TIES by using a different window function. -- Andrew (irc:RhodiumToad)
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера