Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VqwMQ-0001VA-U1 for pgsql-interfaces@arkaria.postgresql.org; Thu, 12 Dec 2013 02:50:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VqwMQ-00017Z-BY for pgsql-interfaces@arkaria.postgresql.org; Thu, 12 Dec 2013 02:50:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VqwMO-00016D-Tw for pgsql-interfaces@postgresql.org; Thu, 12 Dec 2013 02:50:44 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VqwMM-0000TI-NW for pgsql-interfaces@postgresql.org; Thu, 12 Dec 2013 02:50:44 +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 rBC2ofHj020435; Wed, 11 Dec 2013 21:50:41 -0500 From: Tom Lane To: Ian Pye cc: pgsql-interfaces@postgresql.org Subject: Re: Access aggregation functions in plan stage of fdw? In-reply-to: References: Comments: In-reply-to Ian Pye message dated "Wed, 11 Dec 2013 17:00:01 -0800" Date: Wed, 11 Dec 2013 21:50:41 -0500 Message-ID: <20434.1386816641@sss.pgh.pa.us> X-Pg-Spam-Score: -2.1 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-interfaces Precedence: bulk Sender: pgsql-interfaces-owner@postgresql.org Ian Pye writes: > I'm trying to write a fdw where aggregate functions are pushed down to the > underlaying data store. > Is this possible? Not yet. You can find various speculation about doing this in the pgsql-hackers archives from the last month or so. It's going to require some significant planner-infrastructure work, IMO, but we might have it for 9.5. regards, tom lane -- Sent via pgsql-interfaces mailing list (pgsql-interfaces@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-interfaces