pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: Merlin Moncure <mmoncure@gmail.com>
Cc: Atri Sharma <atri.jiit@gmail.com>
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 10:15:37 -0400
Message-ID: <4F844089.2050308@dunslane.net> (raw)
In-Reply-To: <CAHyXU0wUFK_bO48B0eOzUa_434PRf6qmj4=0mWG0SXNJ1KuitA@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>



On 04/10/2012 09:48 AM, Merlin Moncure wrote:
> On Tue, Apr 10, 2012 at 8:42 AM, Andrew Dunstan<andrew@dunslane.net>  wrote:
>>> I am considering two paths for doing this:
>>> The first one takes the help of the SPI(Server Programming Interface)
>>> and the second one directly connects through Pl/Java and JNI(Java
>>> Native Interface).
>>>
>> I'd say forget SPI - I don't think it's going to help you here. Just
>> concentrate on getting the functionality via a PL/Java wrapper. I wouldn't
>> worry too much about jdbc style URLs either, since logically I think you'd
>> want to specify the connection parameters via server and FDW options as in
>> my example above - that way it would be consistent with other FDWs. But
>> that's a piece of bikeshedding for now. Basically, you want to implement the
>> handler function to start with.
> how do you cross from FDW into a pl/java routine without SPI?
>


Add the FDW handler as a sibling function of the function call handler. 
At least that would be my first approach to writing a DBI::DBD FDW 
wrapper for plperl, which I naturally know rather better than the 
PL/Java code.

cheers

andrew



view thread (43+ messages)  latest in thread

Message-ID: <4F844089.2050308@dunslane.net>
Permalink:  ../4F844089.2050308@dunslane.net/
Also on:    postgresql.org/message-id/4F844089.2050308@dunslane.net

 · 

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: andrew@dunslane.net, mmoncure@gmail.com, atri.jiit@gmail.com, pg@fastcrypt.com, pgsql-hackers@postgresql.org
  Subject: Re: [JDBC] Regarding GSoc Application
  In-Reply-To: <4F844089.2050308@dunslane.net>
  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>

* 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