PL/Java 1.6.2 (the Black Friday edition)
PL/Java brings functions, triggers, and types in Java.
1.6.2 is the second minor update in the 1.6 series, for applications on PostgreSQL 9.5 or later and Java 9 or later. Legacy applications requiring older PostgreSQL or Java versions are supported by the 1.5 series.
1.6.2 fixes two bugs (one of which was likely to be a blocker for many applications). It adds a 'trial' security policy, useful when migrating code from PL/Java 1.5 to identify permission grants that may be needed, and some minor but useful example functionality.
Current users of a 1.5.x release should also review the 1.6.0 release notes for changes that may require attention before updating to 1.6.x.
Project site: http://tada.github.io/pljava/
Release notes: http://tada.github.io/pljava/releasenotes.html
Selected changes
-
A 'trial' security policy allows code under test to be run in a partially-enforcing mode to determine what permission grants, if any, may need to be added to the production policy.
-
Example functions demonstrating Java's built-in XSLT 1.0 support have been polished to simplify using it for real work. 1.0 is very limited compared to current XSLT versions, but requires no separate download, and Java's implementation can call accessible Java methods and constructors, offering ways around some limits of strict XSLT 1.0.
One useful stocking-stuffer that results is a simple function to indent XML for readability, just passing a null transform name and
indent => true
totransformXML
.
Please see the release notes for a more complete list of changes.
Availability:
1.6.2 is available from GitHub as a source release, which builds quickly using Maven:
Release page: https://github.com/tada/pljava/releases/tag/V1_6_2
This wiki page will add links to prebuilt packages that become available:
https://github.com/tada/pljava/wiki/Prebuilt-packages