tada / pljava

PL/Java is a free add-on module that brings Java™ Stored Procedures, Triggers, Functions, Aggregates, Operators, Types, etc., to the PostgreSQL™ backend.
http://tada.github.io/pljava/
Other
238 stars 77 forks source link

Add output to simplify troubleshooting native build #489

Closed jcflack closed 2 weeks ago

jcflack commented 3 weeks ago

Add to the build scripting for pljava-so so that the detailed PG_VERSION_STR will appear in the Maven output to clarify what PG version has been found to build against.

This should simplify responding to issues like #487, where the first obvious question is "what version of PostgreSQL is this being built against, anyway?".

The version is logged at Maven's INFO level, so should be present in the output with no special effort.

Also log, at Maven's DEBUG level, the actual arguments being supplied to the compiler and linker. These will only be seen if Maven is run with -X, which therefore can be useful if some more thorny build issue needs to be investigated.

Improve javadoc in pljava-pgxs, to serve as a better reference for what the functions and objects used in the pljava-so POM build script are for.