Skip to content

v0.1.1

Choose a tag to compare

@github-actions github-actions released this 14 Nov 07:51
· 9 commits to main since this release

Security

  • Update ctutils to 0.4.8 for RUSTSEC-2026-0385 (non-constant-time comparisons). It reaches PgLoom through the HMAC that postgres-protocol uses for SCRAM authentication.

Fixed

  • A run in which no SQL from the workers reached the proxy is an error (exit 2), not a pass. This happens when the service ignores the proxy's DATABASE_URL, or when a stale copy of it already answers on the ready_http port; PgLoom now refuses to start in the second case. A service that exits during the run is reported with its output.
  • Results of statements prepared with Describe and Flush (asyncpg, JDBC) are decoded with the formats their Bind requested: binary values no longer appear as raw bytes and columns keep their names. date, timestamp and timestamptz are decoded, and control characters in values are escaped.
  • Connection and query errors show PostgreSQL's message, SQLSTATE and hint instead of db error or error connecting to server.
  • Fix Advisor never proposes FOR NO KEY UPDATE on an aggregate, GROUP BY or DISTINCT read, which PostgreSQL rejects; it locks the rows the read covered instead.
  • Fix Advisor reports write skew (a check over a set of rows followed by a write to a different row in each transaction) and proposes locking the checked rows or SERIALIZABLE.
  • Fix Advisor treats ORM-style casts ($1::INTEGER, CAST($1 AS numeric)) as values computed in the application, and proposes an in-SQL update and a compare-and-set for lost updates.
  • Fix Advisor proposes locking the parent row read in the same transaction (for example the coupon whose usage limit is checked) for phantom inserts.
  • Catalog, snapshot and lock-inspection queries no longer panic on an unexpected column type; they fail with a typed error that names the query.
  • Fix Advisor keeps RETURNING at the end of the SQL it proposes.
  • Fix Advisor splits SET clauses only on top-level commas, so assignments such as GREATEST(balance - $1, 0) or 'a, b' stay intact.
  • Fix Advisor starts a WHERE clause when it guards a statement that has none, instead of appending a dangling AND.
  • pgloom replay finds the scenario next to the repro file when run from another directory.

Added

  • Ctrl+C stops after the current schedule, restores the database and prints what was explored (exit 130); a second Ctrl+C aborts at once.
  • A progress line on interactive terminals for runs longer than a second.
  • --quiet prints only the verdict, the violated invariants and errors.
  • Warnings when ready_http answers with a 4xx status, and a hint to use sslmode=disable when the service fails to start on a TLS error.

Changed

  • The examples/python-wallet requirements accept psycopg-pool 3.2 again, so the example runs on Python 3.9; CI runs it on 3.9 and 3.13.
  • Help texts for --strategy and --max-preemptions state that bounded exploration goes deeper while --max-schedules allows.
  • Release archives are also published under version-independent names, so releases/latest/download/pgloom-<target>.tar.gz always resolves.
  • CI runs the full suite against PostgreSQL 12, 13, 14, 15, 16 and 17 and builds the minimum supported Rust version (1.89).
  • cargo-deny checks advisories, licenses and sources on every change and weekly; Dependabot keeps dependencies and actions current.

Full Changelog: v0.1.0...v0.1.1