Skip to content

Releases

pgsmith v0.1.0

Choose a tag to compare

@github-actions github-actions released this 29 Nov 15:51

The first release of pgsmith: Flagsmith feature flags, evaluated inside PostgreSQL.

Try it without installing anything: the playground runs this release in PostgreSQL 19 compiled to WebAssembly, in your browser.

Install

Supabase, Amazon RDS (pg_tle):

curl -sL https://github.com/SriPrarabdha/pgsmith/releases/download/v0.1.0/pgsmith--0.1.0.pgtle.sql | psql "$DATABASE_URL"

Any PostgreSQL 14–18: copy pgsmith.control and pgsmith--0.1.0.sql into the server's extension directory, then CREATE EXTENSION pgsmith;. See docs/install.md.

What's in it

  • Flag evaluation that matches Flagsmith's engine (flagsmith-flag-engine 11.1.2): every operator, percentage splits, multivariate variants, segment and identity overrides, and flag dependencies. It passes all 230 cases of Flagsmith's engine-test-data v3.13.2.
  • Two tiers: a PL/pgSQL interpreter, and a compiler that turns each configuration into SQL the planner inlines.
  • Sync from Flagsmith, either through a small webhook service or from inside Supabase with pg_cron and Vault. Every load is atomic, and you can pin and unpin.
  • FlagShift, a terraform plan for flag changes over your real users, as a CLI and as a GitHub Action.
  • Exposure and event tracking for Flagsmith Experimentation; flagsmith.doctor() for the whole setup.

Assets

File For
pgsmith--0.1.0.pgtle.sql Supabase and Amazon RDS: one psql command
pgsmith--0.1.0.sql, pgsmith.control any PostgreSQL 14–18
pgsmith-0.1.0-dbdev.tar.gz the database.dev package

Built by CI with Python 3.12 (Unicode 15), from tag v0.1.0. Changelog.