Re: documentation for WITH RECURSIVE

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: documentation for WITH RECURSIVE
Дата
Msg-id 20712.1574098328@sss.pgh.pa.us
обсуждение исходный текст
Ответ на documentation for WITH RECURSIVE  (Andreas Kretschmer <andreas@a-kretschmer.de>)
Ответы Re: documentation for WITH RECURSIVE  (Andreas Kretschmer <andreas@a-kretschmer.de>)
Список pgsql-docs
Andreas Kretschmer <andreas@a-kretschmer.de> writes:
> One of our customers had problems with the syntax of WITH RECURSIVE. He 
> suggested that the documentation should be improved, maybe with this 
> sentence:
> "If any of the CTEs is recursive, the recursive keywork must be present 
> after with", so to make sure that it does not refer to just one of the 
> named subqueries.

Hm, was this intended for the SELECT man page (presumably in the
"WITH Clause" section), or for section 7.8?

In the SELECT page, I'd be inclined to put it after the para about
"queries need not be ordered" and phrase it more like

  If there are multiple queries in the WITH clause, RECURSIVE can
  be written only once, immediately after WITH.  It applies to all
  queries in the WITH clause (but has no effect on queries that do
  not use either of these features).

            regards, tom lane



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

Предыдущее
От: Andreas Kretschmer
Дата:
Сообщение: documentation for WITH RECURSIVE
Следующее
От: Andreas Kretschmer
Дата:
Сообщение: Re: documentation for WITH RECURSIVE