From: Rob Sargent <robjsargent@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: PL/java
Date: Mon, 7 Dec 2020 15:22:31 -0700
Message-ID: <d96d65f6-f375-b872-3c23-6589bc3c0269@gmail.com> (raw)
In-Reply-To: <BLAPR19MB4227746DC4A48B47D2CB09DDAECE0@BLAPR19MB4227.namprd19.prod.outlook.com>
References: <77C7E1EE-F226-4C07-883A-A6F962D33AA3@carrotincentives.com>
<44d79e03-3e28-98cd-252c-5558b03ec94d@aklaver.com>
<CANW1aT-9E4qQ_1GG0mujYzZeZZZkU5MFs+tkzHXd5UKitpoHbQ@mail.gmail.com>
<300f6bcc-a612-af70-d420-50d034199fb8@aklaver.com>
<56364cd5-50ba-ac08-f857-2d66ae0b7133@gmail.com>
<BLAPR19MB4227746DC4A48B47D2CB09DDAECE0@BLAPR19MB4227.namprd19.prod.outlook.com>
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.
>
>
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-general@postgresql.org
Cc: robjsargent@gmail.com
Subject: Re: PL/java
In-Reply-To: <d96d65f6-f375-b872-3c23-6589bc3c0269@gmail.com>
References: <77C7E1EE-F226-4C07-883A-A6F962D33AA3@carrotincentives.com> <44d79e03-3e28-98cd-252c-5558b03ec94d@aklaver.com> <CANW1aT-9E4qQ_1GG0mujYzZeZZZkU5MFs+tkzHXd5UKitpoHbQ@mail.gmail.com> <300f6bcc-a612-af70-d420-50d034199fb8@aklaver.com> <56364cd5-50ba-ac08-f857-2d66ae0b7133@gmail.com> <BLAPR19MB4227746DC4A48B47D2CB09DDAECE0@BLAPR19MB4227.namprd19.prod.outlook.com> <d96d65f6-f375-b872-3c23-6589bc3c0269@gmail.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