Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cTEuP-0000zg-04 for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Jan 2017 21:33:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cTEuO-0006Sm-Ek for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Jan 2017 21:33:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cTEuM-0006Rw-Uo for pgsql-hackers@postgresql.org; Mon, 16 Jan 2017 21:33:43 +0000 Received: from mail-qt0-x229.google.com ([2607:f8b0:400d:c0d::229]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cTEuF-00082d-CB for pgsql-hackers@postgresql.org; Mon, 16 Jan 2017 21:33:42 +0000 Received: by mail-qt0-x229.google.com with SMTP id l7so123627748qtd.1 for ; Mon, 16 Jan 2017 13:33:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=MIoPmSzLAqCKCBiz0TAUlxnPyfKudM0l3XppBd4ioTc=; b=xcmbEi1vLrx9z/v+tPbbh+ksL3f+7LGEqlf1/yuXk0FwDxUGMJNuTNsEwhwIa7odIX akRWhUKmZhrcVrbd5za+wxUYhtpXuPw1CuFPZ5r7ZCaGBx0ZkncMUJvkkFxgbrHNwHdJ LCBbR5H8mpb0iTzZ5Dz6/58oUtSS76Hcb2ni4yLGdRr0W4cD6mkCxfGQCGCzefT288sn 7CPYQWVUGlXjz3BFRcrnThIy9GWBs5KJIzikW5W/E66DclNS+t4TjjmCTll3CpshkK3B /EU6xnX8tEjjb4MmXDVlsG6riTwNAeDpK8XDZD5ptc2ZrbfdX1sIxOR7TLG1F0/Krbx1 tN2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=MIoPmSzLAqCKCBiz0TAUlxnPyfKudM0l3XppBd4ioTc=; b=oORvzmGpkAthofpFsmrFNXGuYtbj93YlaPB8a2fXg/FYBY/0EV/WGXvzCJyCJATi81 a2EDCTGOp3xn0eplsdMf+TKff091HZFPJQqAcQT6my8hv7gPaY2TRzLUKM5V2+eftfon xYqBU+6J7AO7L/N1Q/pDiDMph9ORq67fY8Jyla0cZRFqMVAXNVjYY7nM42Sj013cjeOf Ac3CjZmhSh2juTiBP/1S2Kumtw4zbh4YmoszZeYF62OaQl2sKFX0u0x5b7vzz6qR7bV6 E9XXeeFK6QUt14C2dFdtger1n/kuL7LyicteFZ1OT3KchLZp39SX2lnb0L4j+icQiubh ZmgA== X-Gm-Message-State: AIkVDXIUzkIKTVwf/FBshb3/az2VihiGYwQ67vIvAnMDIxwRS+ZjQfI7py+FygAWX9HxUb+w X-Received: by 10.55.18.76 with SMTP id c73mr31679692qkh.119.1484602413463; Mon, 16 Jan 2017 13:33:33 -0800 (PST) Received: from alvin.alvh.no-ip.org ([179.57.112.237]) by smtp.gmail.com with ESMTPSA id 5sm17194738qts.47.2017.01.16.13.33.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Jan 2017 13:33:32 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 5D5BC27C0; Mon, 16 Jan 2017 18:33:30 -0300 (CLST) Date: Mon, 16 Jan 2017 18:33:30 -0300 From: Alvaro Herrera To: Andres Freund Cc: Tom Lane , pgsql-hackers@postgresql.org Subject: Re: Implement targetlist SRFs using ROWS FROM() (was Changed SRF in targetlist handling) Message-ID: <20170116213330.xfbagqmxfp5bgguo@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170116210019.a3glfwspg5lnfrnm@alap3.anarazel.de> User-Agent: NeoMutt/20161104 (1.7.1) X-Pg-Spam-Score: -2.6 (--) 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 wrote: > On 2017-01-16 16:04:34 -0300, Alvaro Herrera wrote: > > Andres Freund wrote: > > > On 2017-01-16 12:17:46 -0300, Alvaro Herrera wrote: > > > > Hmm. I wonder if your stuff could be used as support code for > > > > XMLTABLE[1]. > > > > > > I don't immediately see what functionality overlaps, could you expand on > > > that? > > > > Well, I haven't read any previous patches in this area, but the xmltable > > patch adds a new way of handling set-returning expressions, so it > > appears vaguely related. > > Ugh. That's not good - I'm about to remove isDone. Like completely. > That's why I'm actually working on all this, because random expressions > returning more rows makes optimizing expression evaluation a lot harder. Argh. > > These aren't properly functions in the current sense of the word, > > though. > > Why aren't they? Looks like it'd be doable to do so, at least below the > parser level? Hmm ... -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers