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 1kmaVx-0001Mo-5k for pgsql-general@arkaria.postgresql.org; Tue, 08 Dec 2020 10:46:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kmaVw-0005Jq-3d for pgsql-general@arkaria.postgresql.org; Tue, 08 Dec 2020 10:46:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kmaVv-0005Jj-Lf for pgsql-general@lists.postgresql.org; Tue, 08 Dec 2020 10:46:35 +0000 Received: from mail-db8eur05on2101.outbound.protection.outlook.com ([40.107.20.101] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kmaVt-0008Ly-2B for pgsql-general@lists.postgresql.org; Tue, 08 Dec 2020 10:46:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Tr1x9pr+IA+/KdL9kh80sM9xqxcM58i8sxsY0ywdsFv1kFXOrsnQt5IIY1KHTXFQZto9ChXT5cMHmN+LGs2BkQz0zVosCZ85mjhuzU6i5FHoul/dlJ/myr6i+ISTeHkIO1XwxQqlnDgjuMFj4u/KqO67WrNNc1x+XuPFc383iKHvv3PqvhUdwsO9MJn67HyMh5FADB47HrE/IlEc5YTHSSsWTHv9qcmTXRVD0yR7rEiq3DH4Y1Scep/I+emrr3QTDcQi+mj2X/npnfMM5ur35e7zK4KfqqmxpJ544eTPK0yNGaRLQkDP/YgBVA2v/34XfkDInyKpWAbTOKuf+POiDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7wZyuhRKk17V56tWY569faw4gTsqbC/XPWQALMf+Svo=; b=hgVNi7TEDWdvsbm/d6puMPZ3J4NBgGqavSeXbpW2PXjU4WFnQ8RvVFpSN3O2IDNqbBR2SaILSHkFDdYb8Ay1WuQpBPiI850XKrDYKzQpCredkaqEtxvigH1jWPI3LhP0NSzPf+DqQjO9i+9NmUWmusEgLVolAC61cvzWn6LCEo3bGZLAhviY+DkR/w5jlZyIU84FJA8fQQRUj1ppfG5lV9zoB8nx8o9bWWElBwokRgurbdhupu+VirnGjD7B6dsSvBJxAi5zfVKPdaizgaH7UTFQnOQ8hHfyz+kmYx07m9/ja5l/zZRn21oPeBnu1/FCoikwGyzVUoCy6yOaC5an2w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=btconnect.com; dmarc=pass action=none header.from=btconnect.com; dkim=pass header.d=btconnect.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=btconnect.onmicrosoft.com; s=selector2-btconnect-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7wZyuhRKk17V56tWY569faw4gTsqbC/XPWQALMf+Svo=; b=Es5oHgzQ6FEuDZXCQUknntWONwEGppjFz4roanewGRzcgPA4hmydoJx/+lBbfx6pGCyIDzsXC8QQNnv6qUBG3smne/RuB0cDL9sgudb+VsAfLI6Y1PbyD1GjFHF3wSb6lEeWCR6kj4s53y3K1VXCFblBI4aUg6qahgz/q/zXqtY= Authentication-Results: lists.postgresql.org; dkim=none (message not signed) header.d=none;lists.postgresql.org; dmarc=none action=none header.from=btconnect.com; Received: from DB7PR07MB5109.eurprd07.prod.outlook.com (2603:10a6:10:2c::26) by DB6PR0701MB2344.eurprd07.prod.outlook.com (2603:10a6:4:61::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.5; Tue, 8 Dec 2020 10:46:30 +0000 Received: from DB7PR07MB5109.eurprd07.prod.outlook.com ([fe80::b813:a046:316:a2bc]) by DB7PR07MB5109.eurprd07.prod.outlook.com ([fe80::b813:a046:316:a2bc%7]) with mapi id 15.20.3654.012; Tue, 8 Dec 2020 10:46:30 +0000 From: David Goodenough To: pgsql-general@lists.postgresql.org Subject: Re: PL/java Date: Tue, 08 Dec 2020 10:46:28 +0000 Message-ID: <4280243.LvFx2qVVIh@continuum> In-Reply-To: References: <77C7E1EE-F226-4C07-883A-A6F962D33AA3@carrotincentives.com> <56364cd5-50ba-ac08-f857-2d66ae0b7133@gmail.com> Content-Type: multipart/alternative; boundary="nextPart2180313.ElGaqSPkdT" Content-Transfer-Encoding: 7Bit X-Originating-IP: [83.151.204.138] X-ClientProxiedBy: LO2P265CA0332.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a4::32) To DB7PR07MB5109.eurprd07.prod.outlook.com (2603:10a6:10:2c::26) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from continuum.localnet (83.151.204.138) by LO2P265CA0332.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a4::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17 via Frontend Transport; Tue, 8 Dec 2020 10:46:30 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cf9d1710-1377-45c4-eb76-08d89b6685d4 X-MS-TrafficTypeDiagnostic: DB6PR0701MB2344: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oXW+eRpAi9XVxIpq04GMZKVhbYhc7mFmy7DEdszsT4CiBHcz37x3S/Ka/UPqrkTW2C0iwlFDMvhpMB9I/gJc7DfWMU9S1fsFS323W0Xxsqw46NyRJG7n3jhdE2QIF+W4YxIJs/29yfTbrUHfCCB0ym5lFum6vmZg0BRkHFWcgExPuEieiy9UrWgtIZno31glxqxkkmf8i1vp6PgUEjraYQL6q+9emrqL1VM5S2Sow41MLFqy9Cqp6PSynxfrPIZgzdoETkdLrRBFyU/azFkjBp5TgLXgVckmWFmDzpd+VJuf0duaHmE0z0vth/CXiOqGwLAFnNPHwFFNj02B9DyowtXvjLuPjwRZqhy9kk19FE0D3sn7FqpCO5J3dNcRPMO2 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR07MB5109.eurprd07.prod.outlook.com;PTR:;CAT:NONE;SFS:(136003)(346002)(376002)(366004)(956004)(6486002)(5660300002)(9686003)(26005)(44832011)(6512007)(52116002)(66476007)(8676002)(2906002)(6916009)(86362001)(8936002)(66556008)(16526019)(33716001)(66946007)(508600001)(186003)(6506007)(53546011)(9576002)(3480700007)(39026012);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?UKJvSRpvaIqbvF4fFIlZaCGIwX26DnRY7XK+c2xdPd5AJ9rOzkVMEHZ4kNQL?= =?us-ascii?Q?5BqhUWF2Ldp556QeIQzWeYDaCkHmvDw5QASxTfxzjvUZGJhohGUUPa3+lOqh?= =?us-ascii?Q?CqY+LGabCWJ4p6gzH1IYG36VRkny01LsOLW+ht+NIQMgTT1hoGTvimhB5mxL?= =?us-ascii?Q?xTpp1+8cNpdJ6kXylQi0jRGfW9AGrC/cWlolPaz19l0jqjyjysQc4AsgCkSs?= =?us-ascii?Q?PmMfHSzRY5lw7SceawXL8kK9B24geRkRzia/3v/38Q4P3kt34HS4yWIkwIG7?= =?us-ascii?Q?eVnvrzI7EEAATrkl8/R/5ZBAKYR/mLEfANhZx8hiCMlmYWtQ2j2lVkLcu605?= =?us-ascii?Q?fJoSgNTO8ruuNkipKglz/i7F7KGN4Xlk/Sm3Ocdo8hQfdLklO6Bt32Dalu4n?= =?us-ascii?Q?fxLRCjQetCSNppFxX4ZOrC4pii6W3o59duEt64iP7yUK9NwhW0H2TIrKWZ84?= =?us-ascii?Q?5fc6uAowN8swuq9qA3Lm159HjY+342BHINzud8hLZkFiUfPYadYbynw4D8G+?= =?us-ascii?Q?y3lMLpUrTmzicYdBnTDxC6A/yNSEHOnkJ4T8AHP/SOXKdofLCSeDLUgpnuxI?= =?us-ascii?Q?gJOeifh/q/gP/MSu2J0diPQ6DBh9Gk+xlHGpIUPTSY+nozXn/Yg/NDkxwrYj?= =?us-ascii?Q?ko3Cw41XnVY0YZWqJiRG2zrRueNlziVvf+f1HNYlmlZgkcePgMDdIaJ5R7bA?= =?us-ascii?Q?8v6SA0Djkpa3prjX/jV7+uPM+sn3hFV3bl95OIJOIGjQrE3oh5s59oC+SNaq?= =?us-ascii?Q?9+758EOXeg2C/dzGK5i4n025sr1qYHPNH/ahxD2XT18au5KM6NDBr0BtCV4x?= =?us-ascii?Q?ysB4MeP9TEz7IDeOhKtnCrimN8hfVsjSCIIuoQCobCHggcvLPj16wTmN2sy3?= =?us-ascii?Q?Wl5uT6cG4q/nmtVTH9pE2wDuy5AtcNVLtzGNLWw1dBM4Ww+ui6IrlhNe48wC?= =?us-ascii?Q?Ar4KPlPXFlBkGLbpC3xxfmovbbGujUWERg06lhHOYTYgi1eej4gFDuUuG9+N?= =?us-ascii?Q?yNpj?= X-OriginatorOrg: btconnect.com X-MS-Exchange-CrossTenant-AuthSource: DB7PR07MB5109.eurprd07.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Dec 2020 10:46:30.6408 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: cf8853ed-96e5-465b-9185-806bfe185e30 X-MS-Exchange-CrossTenant-Network-Message-Id: cf9d1710-1377-45c4-eb76-08d89b6685d4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: QVi/VOtv+WEeIz9xG4JlUfDTOgyEvtgZg8lCguaLYaLzK8pWZBt0UoaXgbeC1arZzi7vIaFsW6aC2NV8Vng04f9X01YsbBCdNX/aGqNjoHM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0701MB2344 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --nextPart2180313.ElGaqSPkdT Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" As of Java-16 there is a replacement for JNI which allows direct calling of native interfaces without the need for hand coded stub code. On Monday, 7 December 2020 22:10:01 GMT 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 > > 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. --nextPart2180313.ElGaqSPkdT Content-Transfer-Encoding: 7Bit Content-Type: text/html; charset="us-ascii"

As of Java-16 there is a replacement for JNI which allows direct calling of native interfaces without the need for hand coded stub code.


On Monday, 7 December 2020 22:10:01 GMT 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

>

> 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.



--nextPart2180313.ElGaqSPkdT--