Questions tagged [pljava]

PL/Java is a free add-on module that brings Java™ Stored Procedures, Triggers, and Functions to the PostgreSQL™ backend.

The development started late 2003 and the first release of PL/Java arrived in January 2005. The project is released under the PLJava License license.

Features

  • Ability to write both functions and triggers using Java 1.4 or higher.
  • Standardized utilities (modeled after the SQL 2003 proposal) to install and maintain Java code in the database.
  • Standardized mappings of parameters and result. Supports scalar and composite UDT's, pseudo types, arrays, and sets.
  • An embedded, high performance, JDBC driver utilizing the internal PostgreSQL SPI routines.
  • Metadata support for the JDBC driver. Both DatabaseMetaData and ResultSetMetaData are included.
  • Full support for PostgreSQL 8.0 savepoints and exception handling.
  • Ability to use IN, INOUT, and OUT parameters when used with PostgreSQL 8.1 or higher.
  • Two language handlers, one TRUSTED (the default) and one that is not TRUSTED (language tag is javaU to conform with the defacto standard).
  • Transaction and Savepoint listeners enabling code execution when a transaction or savepoint is committed or rolled back.
  • Integration with GNU GCJ on selected platforms.

More information about this project can be found in the PL/Java Wiki

36 questions
2
votes
2 answers

Problem in installing pljava on windows

Error on installing pl/java on windows 7 x64 and PostgreSQL 9.0. CREATE FUNCTION sqlj.java_call_handler() RETURNS language_handler AS 'pljava' LANGUAGE C; Error: ERROR: could not load library "C:/Program …
Reza
  • 106
  • 1
  • 5
  • 11
2
votes
1 answer

Install PL/Java on Unix with Postgres Ver. 9.2+

I have been struggling to install PL/Java on Postgres (9.2,9.3, or 9.4) on OpenSuse, Mageia, or Manjaro...I don't like to complain -but the PL/Java documentation is horrible. And I've googled installation help for 2+weeks now, with little…
1
vote
1 answer

What is the alternative of PL/Java for PostgreSQL 11 and 12?

Understand from: https://www.enterprisedb.com/edb-docs/d/edb-postgres-advanced-server/user-guides/user-guide/11/EDB_Postgres_Advanced_Server_Guide.1.80.html that PL/Java is deprecated in Advanced Server 11 and will be unavailable in server versions…
Jacky
  • 11
  • 1
  • 4
1
vote
0 answers

mvn clean install - pljava deployment error - require assistance

I am getting the below error while trying to do Mvn Clean Install .. what should be done here- this is preventing the installation of the Pl java - pls assist [ERROR] Plugin org.apache.maven.plugins:maven-site-plugin:3.9.1 or one of its dependencies…
1
vote
1 answer

mvn clean install returning build failed when installing PL/Java

I am trying to install PL/Java on Ubuntu 16.0.4 and getting PL/Java backend native code ........................ FAILURE error when running mvn clean install command. Complete error logs are given below. PostgreSQL version - 11 Ubuntu Version -…
Tajinder
  • 2,248
  • 4
  • 33
  • 54
1
vote
1 answer

How to fix "SPI_ERROR_UNCONNECTED" error while installing PL/Java on Postgresql-9.5

I'm trying to install PL/Java on PostgreSQL-9.5. My current server is Ubuntu 16.04. My reference link to install PL/Java is the official website: https://tada.github.io/pljava/install/install.html The build process for PL/Java, as described in the…
1
vote
1 answer

Error while creating extension in postgresql

I am using https://tada.github.io/pljava/install/install.html link to create pljava extension in postgresql. Build is ok and there is no unsuccessful operation. However when i tried to create extension using the statement below: create extension…
Alper
  • 771
  • 1
  • 9
  • 27
1
vote
2 answers

Is it possible to debug PL/Java (ideally from Eclipse)?

Although I found PL/Java a powerful add-on for PostgreSQL, I couldn't find a way of remotely debug the clases loaded on the PSQL DBMS. Is this possible to achieve? Thanks in advance!
Federico Cristina
  • 2,203
  • 1
  • 19
  • 37
1
vote
1 answer

Building PL/Java for PostgreSQL 9.4.1 on OpenSuse 13.2

I followed the build instructions on pljava github page, fixed all the required environment variables and attempted to build it. I got this error. $ make make[1]: Entering directory /host/clara/devel/pljava/build/classes/pljava make[1]:…
Charity
  • 11
  • 2
1
vote
0 answers

erroer while installing pl/java postgresql

I am trying to install pljava in my Linux system. the below is my command and error root@pega-5-instance:/etc/postgresql/9.1/share/pljava# su postgres -c "/usr/bin/psql -d pegadb -f /etc/postgre …
Chandan Reddy
  • 499
  • 4
  • 23
1
vote
2 answers

Postgres pl/java caveats

I would very much prefer writing DB side code in Java but would like to know if doing so has any disadvantages compared to pl/pgsql (especially performance & error handling related).
Dojo
  • 5,374
  • 4
  • 49
  • 79
1
vote
1 answer

PL/Java - user function execution error

I installed pl/java on Ubuntu with: sudo apt-get install postgresql-9.1-pljava-gcj but have hit a snag which I think is a gcj/jdk 1.7 incompatibility between the jar and pl/java. These are the steps used with guidance from…
user1351848
  • 127
  • 1
  • 1
  • 9
0
votes
1 answer

Porting PL/pgSQL stored procedures?

We have some PL/pgSQL stored procedures in our DB (PostgreSQL 9.x). These are strictly sequential, and under some circumstances, can be very slow. We are thinking on porting these to PL/Java, PL/Python or something like these, and exploit the…
gyorgyabraham
  • 2,550
  • 1
  • 28
  • 46
0
votes
2 answers

postgresql triggers - defining a global resource (java)

I have a PostgreSQL server and I need to run some code whenever an update happens on some table. The PostgreSQL triggers (using PL/java) allows me to call a static java method. The method I need to execute does an RPC to an external server with the…
Aman
  • 639
  • 1
  • 9
  • 25
0
votes
1 answer

Trying to build PLJAVA 1.5.6 on java 8 + enterprisedb 15.2 fails

Modified the Changes for PLJAVA 1.5.6 since we cannot update the java version to 9 . but now linker is failing while i do the mvn clean install . doing the mvn command from microsoft visual studio command prompt as suggested in installation…
Maverick
  • 131
  • 1
  • 4
1
2 3