Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 256D14B856B for ; Wed, 11 Apr 2012 01:37:05 -0300 (ADT) Received: from mail-pb0-f46.google.com ([209.85.160.46]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SHpIk-0005qH-Bz for pgsql-jdbc@postgresql.org; Wed, 11 Apr 2012 04:37:04 +0000 Received: by pbcun15 with SMTP id un15so750018pbc.19 for ; Tue, 10 Apr 2012 21:36:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:references:in-reply-to:subject:date:message-id:mime-version :content-type:content-transfer-encoding:x-mailer:thread-index :content-language; bh=2lzuCxd2n4wjh6u1EXF6k526xRr0sar2nSybbLByOwA=; b=WE/KXikziKW6W1rjgSzjTzBmdj/7LdXedh5Ki6sDg54SzmzgjX9Bs+aETuIsq+hJz/ iBFi/ql0XFhJzujMCq03I/oPvx7mkv1Tk7VTT/Z94co37h+E2gWbDHUn4YBOkopo/Z06 D2wD1c0yJH7EMJqqtkiEBeUmJNGJdVH0gna7RlK3oLgGi7FFmTk7Fq2e0FuJGfJD3mfb U/WjgABJOREGHIcVEcbmf/kRJGjI6r427KZcIoml21nW92a6+ag7Fd61rFC6GGJhJkhI oNYjmeIxh2g0iPted/gfSP08RhMX2ks0wZfvxMTCtYOfeVU/kzWQVJa0T75URbe4SaaQ oDpA== Received: by 10.68.197.41 with SMTP id ir9mr5734269pbc.83.1334119008497; Tue, 10 Apr 2012 21:36:48 -0700 (PDT) Received: from GITCPC ([122.177.230.99]) by mx.google.com with ESMTPS id q5sm1771477pbp.28.2012.04.10.21.36.45 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 10 Apr 2012 21:36:47 -0700 (PDT) From: "Atri Sharma" To: "'John R Pierce'" , 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> <4F8508C6.5090305@hogran ch.com> In-Reply-To: <4F8508C6.5090305@hogranch.com> Subject: Re: [HACKERS] Regarding GSoc Application Date: Wed, 11 Apr 2012 10:06:40 +0530 Message-ID: <4f850a5f.4537440a.3ae2.4930@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac0Xm9VTuxaJvhMcRyeKioJU1FNUPQAAIaPw Content-Language: en-in X-Pg-Spam-Score: -2.7 (--) X-Archive-Number: 201204/56 X-Sequence-Number: 22856 Hi John, Yes,I agree,that can be done,but we had an extensive discussion on it yesterday and Andrew and Tom believe that would pose serious security issues as any malicious user can change the arguments sent to the SQL and cause problems. Atri -----Original Message----- From: pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of John R Pierce Sent: 11 April 2012 10:00 To: pgsql-jdbc@postgresql.org Subject: Re: [HACKERS] [JDBC] Regarding GSoc Application 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.