Skip to content

v1.3.0 Fix operator commutators

Choose a tag to compare

@codercms codercms released this 20 Nov 10:53
bbfe46e

What's Changed

  • Fix operator commutators by @codercms in #16
    • Fix incorrect comparison commutators that could cause index scans to return wrong query results
    • Remove invalid commutators from mixed-type addition and subtraction
    • Fix installation on PostgreSQL 17.12, which introduced stricter operator validation
    • Add regression tests comparing actual results from sequential and indexed scans

Upgrading from 1.2.0

Install the new extension files, then run as a superuser:

ALTER EXTENSION uint128 UPDATE TO '1.3.0';

The upgrade corrects operator metadata in place, preserving existing data, indexes, views, and materialized views.

Build and regression tests pass on PostgreSQL 12–18.

Thanks to @shenjackyuanjie for the detailed report in #15, which helped uncover both the installation failure and incorrect query results caused by invalid commutators.

Full Changelog: 1.2.0...1.3.0