Migration of DB2 java stored procedures to PostgreSQL

Started by Dirk Krautschickover 5 years ago3 messagesgeneral
Jump to latest
#1Dirk Krautschick
Dirk.Krautschick@trivadis.com

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

#2Laurenz Albe
laurenz.albe@cybertec.at
In reply to: Dirk Krautschick (#1)
Re: Migration of DB2 java stored procedures to PostgreSQL

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

#3Tim Clarke
tim.clarke@minerva.info
In reply to: Laurenz Albe (#2)
Re: Migration of DB2 java stored procedures to PostgreSQL

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 5803 1687 | 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 you must 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 Manifest Voting Agency Ltd: Registered in England Number 2920820 Registered Office at above address. Please Click Here https://www.manifest.co.uk/legal/ for further information.