Re: More WITH - Mailing list pgsql-hackers

From Robert Haas
Subject Re: More WITH
Date
Msg-id CA+Tgmobba9d6O97LTfyo0PAQKf_gGY9xZytFcF=APVcDJE7LLA@mail.gmail.com
Whole thread Raw
In response to Re: More WITH  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: More WITH  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Tue, Aug 18, 2015 at 11:23 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> More generally, what would you hope to accomplish with such a construct
> that wouldn't be better done by writing the cursor's underlying query
> directly in the WITH clause?

Maybe I'm stupid today, but it seems like the obvious use case would
be fetching some but not all rows from the cursor?

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Warnings around booleans
Next
From: Andres Freund
Date:
Subject: Re: Reduce ProcArrayLock contention