[PROPOSAL] Max recursion depth in WITH Queries (Common Table Expressions)

Поиск
Список
Период
Сортировка
От Valery Popov
Тема [PROPOSAL] Max recursion depth in WITH Queries (Common Table Expressions)
Дата
Msg-id 56307A3F.4050802@postgrespro.ru
обсуждение исходный текст
Ответы Re: [PROPOSAL] Max recursion depth in WITH Queries (Common Table Expressions)  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: [PROPOSAL] Max recursion depth in WITH Queries (Common Table Expressions)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi, Hackers

Recursive queries are typically used to deal with hierarchical or
tree-structured data.
In some conditions when data contain  relationships with cycles recursive query will loop
unlimited and significantly slows the client's session.
To prevent "infinite" loop I suggest the max_recursion_depth parameter,
which defines the maximum recursion level during the execution of recursive
query.
When max_recursion_depth > 0 and the recursion level of query exceeds
specified value then the execution of query interrupts with error message.
In the MS SQL Server there is MAXRECURSION hint for the same purpose.


Thanks!
--

Regards,
Valery Popov
Postgres Professional http://www.postgrespro.com
The Russian Postgres Company



Вложения

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

Предыдущее
От: rajan
Дата:
Сообщение: Re: Disabling START TRANSACTION for a SuperUser
Следующее
От: Dmitry Voronin
Дата:
Сообщение: pg_dump