pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Atri Sharma <atri.jiit@gmail.com>
To: 'Tom Lane' <tgl@sss.pgh.pa.us>
To: 'Andrew Dunstan' <andrew@dunslane.net>
To: 'Pg Hackers' <pgsql-hackers@postgresql.org>
To: pgsql-jdbc@postgresql.org
To: 'Merlin Moncure' <mmoncure@gmail.com>
To: 'Dave Cramer' <pg@fastcrypt.com>
To: 'John R Pierce' <pierce@hogranch.com>
To: 'Hitoshi Harada' <umi.tanuki@gmail.com>
Subject: Re: [JDBC] Regarding GSoc Application
Date: Wed, 11 Apr 2012 20:08:07 +0530
Message-ID: <4f85975a.2a18440a.6a58.ffffa25e@mx.google.com> (raw)
In-Reply-To: <CAHyXU0z93NV5Q=UeaeSLkYN272KDsVX0Wrd=VHLMJ_-qeGEvug@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>
	<9745.1334072198@sss.pgh.pa.us>
	<CAHyXU0zKvvviUPr=xn-XJHdWVOEEBVoUDEDagdh5kseefDE1iw@mail.gmail.com>
	< CAHyXU0z93NV5Q=UeaeSLkYN272KDsVX0Wrd=VHLMJ_-qeGEvug@mail.gmail.com>

Hi all,

In continuation to the discussion regarding my JDBC wrapping FDW,I have been
talking to members of the community and I have two approaches on which I
would request your suggestions and opinions:



>I think we are back on the initial approach I proposed(hooking directly
into the JVM and executing Java code that calls JDBC).
>I think the best way to do this is create a JVM that executes the Java code
and give the control of the JVM to the native API.

>I agree,the only need of Pl/Java that is apparent here is the need of the
Java internals(JDK et al).If we set them up >independently,then,we can have
the FDW wrapping JDBC directly through JNI.JNI would call pure Java
functions to connect to the >JDBC.

In the above context,I think if we directly wrap JNI and call pure Java
routines(not using Pl/Java codes directly),we can build something on the
lines of Multicorn(a nice suggestion by Hitoshi) http://multicorn.org/

On the other hand,as suggested by John,we can use the Pl/Java routines that
already exist to build our FDW's API.This shall be the flow:


user application -> SQL -> PLjava FDW functions -> pljava code -> JDBC 
-> foreign database

The user will have to pass security levels and permissions before being able
to get to the FDW.This would look to the user very much like dblink looks
now, and have similar security issues and mitigations.

Please let me know how to proceed further.

Atri





view thread (43+ messages)  latest in thread

Message-ID: <4f85975a.2a18440a.6a58.ffffa25e@mx.google.com>
Permalink:  ../4f85975a.2a18440a.6a58.ffffa25e@mx.google.com/
Also on:    postgresql.org/message-id/4f85975a.2a18440a.6a58.ffffa25e@mx.google.com

 · 

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: atri.jiit@gmail.com, tgl@sss.pgh.pa.us, andrew@dunslane.net, pgsql-hackers@postgresql.org, mmoncure@gmail.com, pg@fastcrypt.com, pierce@hogranch.com, umi.tanuki@gmail.com
  Subject: Re: [JDBC] Regarding GSoc Application
  In-Reply-To: <4f85975a.2a18440a.6a58.ffffa25e@mx.google.com>
  References: <4f802005.cc76440a.668b.ffffcd8e@mx.google.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> <CAHyXU0zKvvviUPr=xn-XJHdWVOEEBVoUDEDagdh5kseefDE1iw@mail.gmail.com> <4f85975a.2a18440a.6a58.ffffa25e@mx.google.com>

* 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