Re: Consequence of changes to CTE's in 12 - Mailing list pgsql-general

From Tom Lane
Subject Re: Consequence of changes to CTE's in 12
Date
Msg-id 1510830.1613090158@sss.pgh.pa.us
Whole thread Raw
In response to Re: Consequence of changes to CTE's in 12  (Michael Lewis <mlewis@entrata.com>)
List pgsql-general
Michael Lewis <mlewis@entrata.com> writes:
> If you move the limit 1 to the first CTE, does it not give you the same
> behavior in both versions?

Not sure if that's exactly the same, but certainly adding a traditional
optimization fence (OFFSET 0) to the first CTE should do the trick.

            regards, tom lane



pgsql-general by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: Consequence of changes to CTE's in 12
Next
From: Steve Baldwin
Date:
Subject: Re: Consequence of changes to CTE's in 12