On Sun, 13 Apr 2025 at 00:33, David G. Johnston
<david(dot)g(dot)johnston(at)gmail(dot)com> wrote:
>
> Kirill's answer is correct; though it is a bit annoying that "create view" cannot detect the infinite recursion inherent in its body.
>
> David J.
>
Hm, if we can detect infinite recursion at runtime, we should also be
able to do it definition-time, on "create or replace". Is there any
reason we omit such a check (for recursive views/relations) when
executing ddl?
--
Best regards,
Kirill Reshke