Skip to content

v3.1.1 - Add Compatibility to PG19

Latest

Choose a tag to compare

@CrystallineCore CrystallineCore released this 19 Nov 18:16

Version 3.1.1

Adds support for PostgreSQL 19. PostgreSQL 16, 17 and 18 are still supported and use the same code as in 3.1.0.

There's no on-disk format change and no SQL-level change, and no REINDEX is needed. Behaviour is the same as 3.1.0 on every supported version.

What's changed

  • PostgreSQL 19 support. PG 19 removed two internal APIs that Biscuit used. Both are now handled at compile time:
    • Collation provider for ~*. PG 19 removed pg_locale_struct.provider. On PG 19 the ICU check now reads the provider from pg_collation instead, or from pg_database for the default collation. It makes the same decision as before.
    • Unlogged-index checksum. PageSetChecksumInplace() is gone in PG 19, so ambuildempty() uses PageSetChecksum() there instead.
  • make test no longer runs the crash-recovery test. Run by a superuser, make test included 09_wal, which force-stops and restarts the server. It now skips that test, as the docs always said. To run it, use make test-all or make check-wal.
  • The test runner looks for the server in /var/run/postgresql by default. That's where the Debian/Ubuntu and PGDG packages put the socket. If you built PostgreSQL from source, it's usually in /tmp, so run PGHOST=/tmp make test.

Upgrading

From 3.1.0, install the new shared library, then run:

ALTER EXTENSION biscuit UPDATE TO '3.1.1';

The update only records the new version number; it doesn't change any objects. Existing connections keep the old library loaded, so restart the server or reconnect to load the new one.

You can upgrade from 3.0.0 directly with ALTER EXTENSION biscuit UPDATE. Upgrading from 2.x still means installing 3.0.0 first and running REINDEX. See the 3.0.0 notes in the changelog.

Install

pgxn install biscuit
# or from source
make && sudo make install          # add WITH_ROARING=1 to build with CRoaring

Full changelog: CHANGELOG.md