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

From Michael Lewis
Subject Re: Consequence of changes to CTE's in 12
Date
Msg-id CAHOFxGqFevsCeo1pRRB3+EYsNWfiEwUHWU5HU-OktH0P-2muJQ@mail.gmail.com
Whole thread Raw
In response to Consequence of changes to CTE's in 12  (Steve Baldwin <steve.baldwin@gmail.com>)
Responses Re: Consequence of changes to CTE's in 12
Re: Consequence of changes to CTE's in 12
List pgsql-general
This functionality seems more a candidate for a set-returning function rather than a view, but I like my views to be side effect free and read only. It would be trivial to implement in plpgsql I believe.

If you move the limit 1 to the first CTE, does it not give you the same behavior in both versions?

pgsql-general by date:

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