Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bfrQ7-0002TL-Hv for pgsql-hackers@arkaria.postgresql.org; Fri, 02 Sep 2016 16:34:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bfrQ7-00073i-4U for pgsql-hackers@arkaria.postgresql.org; Fri, 02 Sep 2016 16:34:23 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bfrOj-00054R-KO for pgsql-hackers@postgresql.org; Fri, 02 Sep 2016 16:32:57 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bfrOh-00030v-2j for pgsql-hackers@postgresql.org; Fri, 02 Sep 2016 16:32:56 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u82GWpGF018143; Fri, 2 Sep 2016 12:32:51 -0400 From: Tom Lane To: Andres Freund cc: Kevin Grittner , Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: Implement targetlist SRFs using ROWS FROM() (was Changed SRF in targetlist handling) In-reply-to: <20160902162553.xgcnvnggxhnztaun@alap3.anarazel.de> References: <20160523005327.v2tr7obytitxcnna@alap3.anarazel.de> <20160822214023.aaxz5l4igypowyri@alap3.anarazel.de> <20160902141110.6xciuntt5h4i6eni@alap3.anarazel.de> <20160902142023.ktgvv4ksnqinqr74@alap3.anarazel.de> <10163.1472826300@sss.pgh.pa.us> <20160902153157.r5nfamzr24yx3gaf@alap3.anarazel.de> <20160902162553.xgcnvnggxhnztaun@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Fri, 02 Sep 2016 09:25:53 -0700" Date: Fri, 02 Sep 2016 12:32:51 -0400 Message-ID: <18142.1472833971@sss.pgh.pa.us> X-Pg-Spam-Score: -3.4 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Andres Freund writes: > ... What we could do is to add efficient > ROWS FROM (..) WITH ORDINALITY ORDER bY ordinality; > support. Hm? regression=# explain select * from rows from (generate_series(1,10)) with ordinality order by ordinality; QUERY PLAN ------------------------------------------------------------------------- Function Scan on generate_series (cost=0.00..10.00 rows=1000 width=12) (1 row) regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers