Re: Proposing WITH ITERATIVE

Поиск
Список
Период
Сортировка
От Jonah H. Harris
Тема Re: Proposing WITH ITERATIVE
Дата
Msg-id CADUqk8XvYHbhx_k4P3skZTGUZLAM-zk=6w+RuXnjbKdZJChrhA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Proposing WITH ITERATIVE  (Corey Huinker <corey.huinker@gmail.com>)
Ответы Re: Proposing WITH ITERATIVE
Список pgsql-hackers
On Wed, Apr 29, 2020 at 4:50 PM Corey Huinker <corey.huinker@gmail.com> wrote:
Having both WHERE and WHILE might look awkward.

Maybe an UNTIL instead of WHILE?

While I'm not a huge fan of it, one of the other databases implementing this functionality does so using the syntax:

WITH ITERATIVE R AS '(' R0 ITERATE Ri UNTIL N (ITERATIONS | UPDATES) ')' Qf

Where N in ITERATIONS represents termination at an explicit count and, in UPDATES, represents termination after Ri updates more than n rows on table R.

--
Jonah H. Harris

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

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: xid wraparound danger due to INDEX_CLEANUP false
Следующее
От: Andres Freund
Дата:
Сообщение: Re: xid wraparound danger due to INDEX_CLEANUP false