Re: [HACKERS] Regarding GSoc Application - Mailing list pgsql-jdbc

From Tom Lane
Subject Re: [HACKERS] Regarding GSoc Application
Date
Msg-id 9745.1334072198@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] Regarding GSoc Application  (Atri Sharma <atri.jiit@gmail.com>)
Responses Re: [HACKERS] Regarding GSoc Application  (Andrew Dunstan <andrew@dunslane.net>)
Re: [HACKERS] Regarding GSoc Application  (Merlin Moncure <mmoncure@gmail.com>)
List pgsql-jdbc
Atri Sharma <atri.jiit@gmail.com> writes:
> On Tue, Apr 10, 2012 at 8:55 PM, Tom Lane <tgl@sss.pgh.pa.us> 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

pgsql-jdbc by date:

Previous
From: Atri Sharma
Date:
Subject: Re: [HACKERS] Regarding GSoc Application
Next
From: Andrew Dunstan
Date:
Subject: Re: [HACKERS] Regarding GSoc Application