Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id BB1A54B856B for ; Wed, 11 Apr 2012 01:30:24 -0300 (ADT) Received: from hogranch.com ([75.101.82.47]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SHpCJ-0007Q6-2N for pgsql-jdbc@postgresql.org; Wed, 11 Apr 2012 04:30:24 +0000 Received: from [127.0.0.1] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id q3B4U3907050 for ; Tue, 10 Apr 2012 21:30:03 -0700 Message-ID: <4F8508C6.5090305@hogranch.com> Date: Tue, 10 Apr 2012 21:29:58 -0700 From: John R Pierce User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: [HACKERS] Regarding GSoc Application 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> <9745.1334072198@sss.pgh.pa.us> < CAHyXU0z93NV5Q=UeaeSLkYN272KDsVX0Wrd=VHLMJ_-qeGEvug@mail.gmail.com> <4f84fd5f.a93b440a.2eed.42c4@mx.google.com> In-Reply-To: <4f84fd5f.a93b440a.2eed.42c4@mx.google.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201204/55 X-Sequence-Number: 22855 On 04/10/12 8:41 PM, Atri Sharma wrote: > 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. PL/Java also provides for passing SQL arguments in various data types to/from your java code. not usinig pl/java would mean you'd have to reinvent all those wheels, they exist now in a standard mannner, why not use them? as I see it, your proposal could be implemented as a set of pljava functions callable from SQL that would in turn invoke JDBC to connect to and fetch data from your foreign database, then return it to the calling SQL procedure, much as dblink does now for pg to pg database links. -- john r pierce N 37, W 122 santa cruz ca mid-left coast