Thread

  1. Re: Second RewriteQuery complains about first RewriteQuery in edge case

    Dean Rasheed <dean.a.rasheed@gmail.com> — 2025-11-29T12:45:20Z

    On Fri, 28 Nov 2025 at 09:21, Bernice Southey <bernice.southey@gmail.com> wrote:
    >
    > This is neat.
    > Should the test be the rules one? Updatable views are more used, but
    > your rules example has more coverage.
    
    Yes, I think that's probably better. I've tweaked the test to use both
    rules and updatable views, so that it has to deal with more than one
    CTE. That way, it validates that we skip already-processed CTEs from
    the right end of the list.
    
    Pushed and back-patched.
    
    Regards,
    Dean