pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Atri Sharma <atri.jiit@gmail.com>
Cc: Merlin Moncure <mmoncure@gmail.com>
Cc: Andrew Dunstan <andrew@dunslane.net>
Cc: Dave Cramer <pg@fastcrypt.com>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Regarding GSoc Application
Date: Tue, 10 Apr 2012 11:36:38 -0400
Message-ID: <9745.1334072198@sss.pgh.pa.us> (raw)
In-Reply-To: <CAOeZVicsfHexSnqQX_ZuFqhgcChzkViKTsNiOjMKOg9qUyRGDg@mail.gmail.com>
References: <4f802005.cc76440a.668b.ffffcd8e@mx.google.com>
	<CADK3HHLnOXKS0pcoEe8yhi4TwWpGNMnpTN0D+rnfERiuYbcmsw@mail.gmail.com>
	<CAHyXU0wrY4ragg3f=fSRDKs9ofF1t_apqqwGDsxVJde3NgPc-Q@mail.gmail.com>
	<CADK3HHLgyAp00eB4=sZF3dfV5_S_P+xqS=b4pbQLMzFyxAPcUw@mail.gmail.com>
	<CAHyXU0z+JL+PBSpi8hf+=EsxcYFwUeAhKsVcrW6JVrmq+r-B3A@mail.gmail.com>
	<CADK3HHLN+3kmMTyYvz8q35eB5xK+fizZoEdqwh4iq2B2xTQUJQ@mail.gmail.com>
	<4F831234.7040209@dunslane.net>
	<CAOeZVieUiksGhFFGK_HYdZhCEH13Q7OpOJ0o2Wph-XUbkQYm2w@mail.gmail.com>
	<4F8438AD.7060503@dunslane.net>
	<CAHyXU0wUFK_bO48B0eOzUa_434PRf6qmj4=0mWG0SXNJ1KuitA@mail.gmail.com>
	<4F844089.2050308@dunslane.net>
	<CAHyXU0zAZNiWdWCfaFc==O+5Z9ccDSxwu5WOG4ds4ZQBgyqNOw@mail.gmail.com>
	<4F84480F.1020905@dunslane.net>
	<CAHyXU0wUg1TLdyMm0PzQwgYb6iRyCP4+YkqqaxWGUNUZLsj_PA@mail.gmail.com>
	<9511.1334071505@sss.pgh.pa.us>
	<CAOeZVicsfHexSnqQX_ZuFqhgcChzkViKTsNiOjMKOg9qUyRGDg@mail.gmail.com>

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



view thread (43+ messages)  latest in thread

Message-ID: <9745.1334072198@sss.pgh.pa.us>
Permalink:  ../9745.1334072198@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9745.1334072198@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: tgl@sss.pgh.pa.us, atri.jiit@gmail.com, mmoncure@gmail.com, andrew@dunslane.net, pg@fastcrypt.com, pgsql-hackers@postgresql.org
  Subject: Re: [JDBC] Regarding GSoc Application
  In-Reply-To: <9745.1334072198@sss.pgh.pa.us>
  References: <4f802005.cc76440a.668b.ffffcd8e@mx.google.com> <CADK3HHLnOXKS0pcoEe8yhi4TwWpGNMnpTN0D+rnfERiuYbcmsw@mail.gmail.com> <CAHyXU0wrY4ragg3f=fSRDKs9ofF1t_apqqwGDsxVJde3NgPc-Q@mail.gmail.com> <CADK3HHLgyAp00eB4=sZF3dfV5_S_P+xqS=b4pbQLMzFyxAPcUw@mail.gmail.com> <CAHyXU0z+JL+PBSpi8hf+=EsxcYFwUeAhKsVcrW6JVrmq+r-B3A@mail.gmail.com> <CADK3HHLN+3kmMTyYvz8q35eB5xK+fizZoEdqwh4iq2B2xTQUJQ@mail.gmail.com> <4F831234.7040209@dunslane.net> <CAOeZVieUiksGhFFGK_HYdZhCEH13Q7OpOJ0o2Wph-XUbkQYm2w@mail.gmail.com> <4F8438AD.7060503@dunslane.net> <CAHyXU0wUFK_bO48B0eOzUa_434PRf6qmj4=0mWG0SXNJ1KuitA@mail.gmail.com> <4F844089.2050308@dunslane.net> <CAHyXU0zAZNiWdWCfaFc==O+5Z9ccDSxwu5WOG4ds4ZQBgyqNOw@mail.gmail.com> <4F84480F.1020905@dunslane.net> <CAHyXU0wUg1TLdyMm0PzQwgYb6iRyCP4+YkqqaxWGUNUZLsj_PA@mail.gmail.com> <9511.1334071505@sss.pgh.pa.us> <CAOeZVicsfHexSnqQX_ZuFqhgcChzkViKTsNiOjMKOg9qUyRGDg@mail.gmail.com> <9745.1334072198@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox