Thread: Migration of DB2 java stored procedures to PostgreSQL

Migration of DB2 java stored procedures to PostgreSQL

From
Dirk Krautschick
Date:
Hi,

for a potential migration from DB2 on DB2/z to PostgreSQL I have to take care of a whole
bunch of java stored procedures. Would that be a show stopper here or is a migration
somehow possible or is it anyway the same because Java = Java? 

Any experiences/recommendations or helpful ressources? 

Many thanks and best regards

Dirk

Re: Migration of DB2 java stored procedures to PostgreSQL

From
Laurenz Albe
Date:
On Mon, 2020-08-24 at 16:32 +0000, Dirk Krautschick wrote:
> for a potential migration from DB2 on DB2/z to PostgreSQL I have to take care of a whole
> bunch of java stored procedures. Would that be a show stopper here or is a migration
> somehow possible or is it anyway the same because Java = Java? 
> 
> Any experiences/recommendations or helpful ressources? 

There is PL/Java, but it is not part of the core PostgreSQL distribution, so you'd
have to build it yourself.

If performance is important or you don't want to depend on third-party modules,
post the code to PL/Python or PL/Perl.  If the code is just glue around some SQL,
PL/pgSQL might be the best choice.

Yours,
Laurenz Albe
-- 
+43-670-6056265
CYBERTEC PostgreSQL International GmbH
Gröhrmühlgasse 26, A-2700 Wiener Neustadt
Web: https://www.cybertec-postgresql.com




Re: Migration of DB2 java stored procedures to PostgreSQL

From
Tim Clarke
Date:
On 24/08/2020 18:31, Laurenz Albe wrote:
> On Mon, 2020-08-24 at 16:32 +0000, Dirk Krautschick wrote:
>> for a potential migration from DB2 on DB2/z to PostgreSQL I have to take care of a whole
>> bunch of java stored procedures. Would that be a show stopper here or is a migration
>> somehow possible or is it anyway the same because Java = Java?
>>
>> Any experiences/recommendations or helpful ressources?
> There is PL/Java, but it is not part of the core PostgreSQL distribution, so you'd
> have to build it yourself.
>
> If performance is important or you don't want to depend on third-party modules,
> post the code to PL/Python or PL/Perl.  If the code is just glue around some SQL,
> PL/pgSQL might be the best choice.
>
> Yours,
> Laurenz Albe


+1 for PL/Java, we've been using it for years.


Tim Clarke MBCS
IT Director
Direct: +44 (0)1376 504510 | Mobile: +44 (0)7887 563420


Telephone: Witham: +44(0)1376 503500 | London: +44 (0)20 3009 0853 | Frankfurt: +49 (0)69 7191 6000 | Hong Kong: +852
58031687 | Toronto: +1 647 503 2848
 
Web: https://www.manifest.co.uk/



Minerva Analytics Ltd - A Solactive Company
9 Freebournes Court | Newland Street | Witham | Essex | CM8 2BL | United Kingdom

________________________________

Copyright: This e-mail may contain confidential or legally privileged information. If you are not the named addressee
youmust not use or disclose such information, instead please report it to
admin@minerva.info<mailto:admin@minerva.info>
Legal: Minerva Analytics is the trading name of: Minerva Analytics Ltd: Registered in England Number 11260966 & The
ManifestVoting Agency Ltd: Registered in England Number 2920820 Registered Office at above address. Please Click Here
https://www.manifest.co.uk/legal/for further information.