Re: More WITH

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Craig Ringer <craig(at)2ndquadrant(dot)com>, David Fetter <david(at)fetter(dot)org>, PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: More WITH
Date: 2015-08-21 18:53:14
Message-ID: 29334.1440183194@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> The existing syntax for FETCH already includes a way to specify the
> number of rows you want to fetch, as in this example from the
> documentation:
> FETCH FORWARD 5 FROM liahona;
> Why wouldn't that work here too?

Mm, okay, but you still have the other objections to address.

(And it remains the case that you can do this today with a plpgsql
function, which solves the indeterminate-rowtype problem by nailing
down the rowtype at the function result level.)

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2015-08-21 19:03:17 Re: More WITH
Previous Message Robert Haas 2015-08-21 18:48:27 Re: More WITH