Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id DBFB7189E83A; Tue, 10 Apr 2012 12:56:17 -0300 (ADT) Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SHdQW-0002Bl-0G; Tue, 10 Apr 2012 15:56:17 +0000 X-Originating-IP: 217.70.178.138 Received: from mfilter9-d.gandi.net (mfilter9-d.gandi.net [217.70.178.138]) by relay4-d.mail.gandi.net (Postfix) with ESMTP id AEEDB17207E; Tue, 10 Apr 2012 17:55:51 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter9-d.gandi.net Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by mfilter9-d.gandi.net (mfilter9-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id 6YQfzMAKdAe7; Tue, 10 Apr 2012 17:55:50 +0200 (CEST) X-Originating-IP: 98.27.54.176 Received: from [192.168.10.146] (cpe-098-027-054-176.nc.res.rr.com [98.27.54.176]) (Authenticated sender: adsend@dunslane.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id F019B17209C; Tue, 10 Apr 2012 17:55:48 +0200 (CEST) Message-ID: <4F845803.8090908@dunslane.net> Date: Tue, 10 Apr 2012 11:55:47 -0400 From: Andrew Dunstan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1 MIME-Version: 1.0 To: Tom Lane CC: Atri Sharma , Merlin Moncure , Dave Cramer , Pg Hackers , pgsql-jdbc@postgresql.org Subject: Re: [JDBC] Regarding GSoc Application References: <4f802005.cc76440a.668b.ffffcd8e@mx.google.com> <4F831234.7040209@dunslane.net> <4F8438AD.7060503@dunslane.net> <4F844089.2050308@dunslane.net> <4F84480F.1020905@dunslane.net> <9511.1334071505@sss.pgh.pa.us> <9745.1334072198@sss.pgh.pa.us> In-Reply-To: <9745.1334072198@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201204/482 X-Sequence-Number: 206285 On 04/10/2012 11:36 AM, Tom Lane wrote: > Atri Sharma writes: >> On Tue, Apr 10, 2012 at 8:55 PM, Tom Lane wrote: >>> Hm? SPI doesn't know anything about Java either. >> We plan to call SQL through SPI from the FDW,which in turn would call >> the Pl/Java routine. > If you're saying that every Java function that the FDW needs would have > to be exposed as a SQL function, that seems like a pretty high-risk > (not to mention low performance) approach. Not only do you have to > design a SQL representation for every datatype you need, but you have to > be sure that you do not have any security holes arising from > unscrupulous users calling those SQL functions manually with arguments > of their choosing. > > Yeah. I think this design is horribly baroque and unnecessary. SPI is for talking SQL. It's completely in the way of a straight-forward implementation of this feature IMNSHO. cheers andrew