|
@@ -6,8 +6,8 @@ Installation
|
|
|
Build requirements:
|
|
|
* libpq-dev
|
|
|
* libkrb5-dev
|
|
|
-* postgresql-server-dev-13
|
|
|
-* openjdk-11-jdk-headless
|
|
|
+* postgresql-server-dev-15
|
|
|
+* openjdk-17-jdk-headless
|
|
|
|
|
|
## Install the postgresql repo
|
|
|
|
|
@@ -24,12 +24,13 @@ See the postgresql documentation for other systems: https://www.postgresql.org/d
|
|
|
|
|
|
On a debian system:
|
|
|
```
|
|
|
-apt-get install install libpq-dev libkrb5-dev postgresql-server-dev-13 openjdk-11-jdk-headless
|
|
|
+apt install libpq-dev libkrb5-dev postgresql-server-dev-15 openjdk-17-jdk-headless
|
|
|
```
|
|
|
|
|
|
## Build pljava
|
|
|
```
|
|
|
git clone https://github.com/tada/pljava.git
|
|
|
+git checkout V1_6_6
|
|
|
mvn clean install
|
|
|
```
|
|
|
## Install pljava into postgresql server
|
|
@@ -44,9 +45,14 @@ java -jar pljava-packaging/target/pljava-pgX.jar
|
|
|
As postgres user, connect to the database for which you wish to enable pljava extension.
|
|
|
In this example, the database is **pljavadb**
|
|
|
|
|
|
-Run SQL:
|
|
|
+Create role and extension:
|
|
|
```
|
|
|
+CREATE ROLE pljavarole;
|
|
|
CREATE EXTENSION pljava;
|
|
|
+```
|
|
|
+
|
|
|
+Apply ACLs
|
|
|
+``
|
|
|
GRANT USAGE ON LANGUAGE java TO pljavarole;
|
|
|
ALTER DATABASE pljavadb SET pljava.libjvm_location TO '/usr/lib/jvm/java-11-openjdk-arm64/lib/server/libjvm.so';
|
|
|
```
|