Re: SEARCH and CYCLE clauses

Поиск
Список
Период
Сортировка
От Vik Fearing
Тема Re: SEARCH and CYCLE clauses
Дата
Msg-id 54e533c5-09e5-7f41-9892-d4e0f7c62598@postgresfriends.org
обсуждение исходный текст
Ответ на SEARCH and CYCLE clauses  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Ответы Re: SEARCH and CYCLE clauses  (Vik Fearing <vik@postgresfriends.org>)
Список pgsql-hackers
On 5/20/20 1:46 PM, Peter Eisentraut wrote:
> I have implemented the SEARCH and CYCLE clauses.

YES!

> This is standard SQL syntax attached to a recursive CTE to compute a
> depth- or breadth-first ordering and cycle detection, respectively. This
> is just convenience syntax for what you can already do manually. The
> original discussion about recursive CTEs briefly mentioned these as
> something to do later but then it was never mentioned again.
> 
> SQL specifies these in terms of syntactic transformations, and so that's
> how I have implemented them also, mainly in the rewriter.

I've attempted to do this several times but didn't get anywhere with it.
 I'm looking forward to reviewing this.

(And maybe it will put me on the right path for implementing <unique
predicate>.)
-- 
Vik Fearing



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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Hybrid Hash/Nested Loop joins and caching results from subplans
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pgindent vs dtrace on macos