PLJS Change Log
1.0.0
Released June 25, 2025.
- Support of PLV8 functionality
- Documentation created
- First initial release
1.0.1
Released July 1, 2025.
- Remove extraneous include from
types.cthat stopped PG14/15 compilation - Add PG14/15 compilation to the CI
1.0.2
Released August 20, 2025.
- Fix function name collision with QuickJS
- Add missing
subtransactionsupport - Fix memory context switching before
CopyErrorData()
1.0.3
Released August 20, 2025.
- PGXN release went out with an incorrect control file
1.0.4
Released January 11, 2026.
- Up memory default limit to 512MB
- Remove unnecessary include from modules.c
- Remove extra running of GC after each execution
- Better handling of SRF’s, including freeing resources
- Increased test timeouts to accommodate slower CI machines
- Alter memory limit minimum to 64MB to facilitate testing
- Alter some tests for s390x testing
- Clean up parameter orders for function calls
- Fixed potential memory leak in
pljs_jsvalue_to_datums
1.0.5
Released January 27, 2026.
- Fix key name issue in JSONB_DIRECT_CONVERSION path
1.0.6
Released December 4, 2026.
- Support for PostgreSQL 19
- Use
PG_MODULE_MAGIC_EXTin PostgreSQL 18 and later - Fix
SETOFdomain over composite returns failing with “using outdated tuple descriptor when deforming row type” on PostgreSQL minor releases with attribute versioning - Fix
localeCompare()andnormalize()crashing the backend on Linux, by building QuickJS with hidden symbols so the postgres binary’sunicode_normalize()is no longer called in place of QuickJS’s - Fix composite SRF (
RETURNS TABLE) to correctly handle array returns - Fix use after free in cursor management
- Fix mingw64/Windows JSONB crash
- Memory safety fixes
- Preserve the JavaScript error message and PostgreSQL detail across SPI
- Expose the SQLSTATE of a caught error as
e.sqlstate, and re-raise a caught PostgreSQL error under its own SQLSTATE - Give the argument count mismatch a real SQLSTATE
- Name the mismatched column and properties in
return_nexterrors - Say that a record-returning function needs a column definition list
- Open, fetch, move and close cursors inside a subtransaction, so an error no longer tears down the SPI connection
- Catch PostgreSQL errors raised in
pljs.return_nextas JavaScript exceptions - Connect to SPI in triggers, so a trigger function can query
- Allocate prepared plan data in
CacheMemoryContext, and use the parameter types given topljs.prepare - Release the result set and per-call plan in
pljs.execute - Fix leaks of property name enumerations, per-call parameter and result allocations, rendered numeric strings, validator state, and QuickJS state on cache reset
- Fix reference counting of cached functions handed to JavaScript
- Resolve window function argument types per call rather than per function
- Pass every argument of a
VARIADIC "any"function to JavaScript; only the first one was passed, and the rest were dropped - Convert types without a dedicated conversion (
uuid,money, enums, etc.) through their own I/O functions instead of their internal bytes - Convert domains as their base type and check them against the domain, applying typmods and checking NULLs on every path
- Report NULL composite and record results correctly, and return void from void functions