Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kmOu0-0007xi-Jl for pgsql-general@arkaria.postgresql.org; Mon, 07 Dec 2020 22:22:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kmOtz-0001Om-Hs for pgsql-general@arkaria.postgresql.org; Mon, 07 Dec 2020 22:22:39 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kmOtz-0001Of-3r for pgsql-general@lists.postgresql.org; Mon, 07 Dec 2020 22:22:39 +0000 Received: from mail-ot1-x344.google.com ([2607:f8b0:4864:20::344]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kmOtu-000899-EG for pgsql-general@lists.postgresql.org; Mon, 07 Dec 2020 22:22:37 +0000 Received: by mail-ot1-x344.google.com with SMTP id b62so14090378otc.5 for ; Mon, 07 Dec 2020 14:22:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=9pYPqKV03lzaK7xXN1JlcgV7BAeAgUzswJi8U+RUmFg=; b=W0bcVVwjKziErb3NzO1gwt+owmF4YjlemkyT9+jyXnojef9JQCpowEd8BO2OuUvs0h ls4Nnz/PglhgTygmT2xtReiTf8tcwY+xJvHTuL+RJLskQLjfMH4cwqe1WsO3BH7XEZTf ST1sZx0iZoFp8y+3t1HVCWc8LJWr1trqX74sakHpOXZRH365PhSNMeZJRUMiRTr2KKFj epEuekQ/vYxUJ7+bhbsOraX0/QYucA62g+bVR2gs4NmZyHOdkOncKVgG21x+9ThXz7sV Tx7xGuIA8npUfPe2ZjgOA8GjjR4+VxpMqiab3U2xIPhmLhajN/PUe9uqu231LpPFD/JO QJqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=9pYPqKV03lzaK7xXN1JlcgV7BAeAgUzswJi8U+RUmFg=; b=N+ZTeuUCG+vIl8DCF0QwVvIGTo3rRr4wYbTYU3Dzf9C3aSVoEW85fb756V2CW9977Z tg0CHy39vGtYVy8Y+0qM87Nd165lm3wNTqM9RSoqeKUUa/yEoHAJkWDbv7ljOsvMuRYC +LwopG+1cUxZeQ2NmRrCwS5XB/zR8Hyd2zlP18fEao6crxsV/tZfYX+4ehFBNWpsYZ5D 65cFUfKON525gbXtNL5ZAYXlv7uYg9XYOlF+QcwQmnvpqgvMQ95ETjgV+0Mc/vjJq1pB j6VM08kLs/hYKhjUii0rtSZL7M2lrv6ua6X2T5q1Dx1e3+/LzuKAGSfoqSeo/zvgZwUW R8JA== X-Gm-Message-State: AOAM530jgqkIiMsy+EfMmuG+ei8IUL22SgT4AiQNDWonrtXuZXOKaQei nxXhsmBqnEc+wZsh8/fYbT7nhBrsMYw= X-Google-Smtp-Source: ABdhPJwLamVBJhrgusdoTVuiKsw1t6cuwcPSmFmn3mJBUeDvf0SQ5OusVTVSBKAXrd2QrBEYJ7hymA== X-Received: by 2002:a9d:5e97:: with SMTP id f23mr14461929otl.204.1607379753293; Mon, 07 Dec 2020 14:22:33 -0800 (PST) Received: from ?IPv6:2601:681:5500:dde0:df9:1f95:bb41:a013? ([2601:681:5500:dde0:df9:1f95:bb41:a013]) by smtp.gmail.com with ESMTPSA id b28sm2917275oob.22.2020.12.07.14.22.32 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Dec 2020 14:22:32 -0800 (PST) Subject: Re: PL/java To: pgsql-general@lists.postgresql.org References: <77C7E1EE-F226-4C07-883A-A6F962D33AA3@carrotincentives.com> <44d79e03-3e28-98cd-252c-5558b03ec94d@aklaver.com> <300f6bcc-a612-af70-d420-50d034199fb8@aklaver.com> <56364cd5-50ba-ac08-f857-2d66ae0b7133@gmail.com> From: Rob Sargent Message-ID: Date: Mon, 7 Dec 2020 15:22:31 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------940088D8173EF354BA22E070" Content-Language: en-CA List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------940088D8173EF354BA22E070 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit On 12/7/20 3:10 PM, Martin Gainty wrote: > Nota Bene: > Almost all official interfaces to/from Oracle are coded in Java > FWIK google's implementations are 95% python > (although you would need to understand JSON formatting for > import/export requirements) > for those reasons i tread lightly before disparaging either language > > Going Forward: > try to implement PL/SQL that rob/joshua mentioned > if you're calling no-joy after implementing PL/SQL > then we can take a look at interfacing to Postgres ETL binaries with a > JNI interface > provided the JNI is spot on with signatures for each referenced function > If I'm tracking correctly I can say the java implementation of CopyManager is, to me, blindingly fast.  So if the E and the T are in java then certainly the L can be also.  I have not compared it to straight file-base copy because my data is conceived in Java and slammed home directly from the app (middle-ware). I write relatively large blocks (millions of records) to naked temporary tables and then let straight sql read from there and insert into final tables in chunks. > Un Saludo > m > > ------------------------------------------------------------------------ > *From:* Rob Sargent > *Sent:* Monday, December 7, 2020 11:16 AM > *To:* pgsql-general@lists.postgresql.org > > *Subject:* Re: PL/java > > On 12/7/20 8:25 AM, Adrian Klaver wrote: > > On 12/7/20 7:18 AM, Hemil Ruparel wrote: > >> I want to say this. I never liked any extension language. It's like > >> Java is not meant to interact with databases. > > > > The JDBC folks might disagree. > > > That interaction is strictly sql to db, data to app.  As it should be. > > --------------940088D8173EF354BA22E070 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit


On 12/7/20 3:10 PM, Martin Gainty wrote:
Nota Bene: 
Almost all official interfaces to/from Oracle are coded in Java
FWIK google's implementations are 95% python
(although you would need to understand JSON formatting for import/export requirements)
for those reasons i tread lightly before disparaging either language

Going Forward:
try to implement PL/SQL that rob/joshua mentioned 
if you're calling no-joy after implementing PL/SQL
then we can take a look at interfacing to Postgres ETL binaries with a JNI interface
provided the JNI is spot on with signatures for each referenced function

If I'm tracking correctly I can say the java implementation of CopyManager is, to me, blindingly fast.  So if the E and the T are in java then certainly the L can be also.  I have not compared it to straight file-base copy because my data is conceived in Java and slammed home directly from the app (middle-ware). I write relatively large blocks (millions of records) to naked temporary tables and then let straight sql read from there and insert into final tables in chunks.
Un Saludo
m


From: Rob Sargent <robjsargent@gmail.com>
Sent: Monday, December 7, 2020 11:16 AM
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: PL/java
 

On 12/7/20 8:25 AM, Adrian Klaver wrote:
> On 12/7/20 7:18 AM, Hemil Ruparel wrote:
>> I want to say this. I never liked any extension language. It's like
>> Java is not meant to interact with databases.
>
> The JDBC folks might disagree.
>
That interaction is strictly sql to db, data to app.  As it should be.


--------------940088D8173EF354BA22E070--