Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id E6BE8189E83A; Tue, 10 Apr 2012 12:36:53 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SHd7l-0001qH-7e; Tue, 10 Apr 2012 15:36:53 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q3AFacp2009746; Tue, 10 Apr 2012 11:36:38 -0400 (EDT) To: Atri Sharma cc: Merlin Moncure , Andrew Dunstan , Dave Cramer , Pg Hackers , pgsql-jdbc@postgresql.org Subject: Re: [JDBC] Regarding GSoc Application In-reply-to: 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> Comments: In-reply-to Atri Sharma message dated "Tue, 10 Apr 2012 20:58:23 +0530" Date: Tue, 10 Apr 2012 11:36:38 -0400 Message-ID: <9745.1334072198@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201204/477 X-Sequence-Number: 206280 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. regards, tom lane