pg_liquid
Liquid-inspired Datalog graph query extension for PostgreSQL
Repository
michael-golfi/pg_liquid
https://github.com/michael-golfi/pg_liquid
Source
pg_liquid-0.1.7.tar.gz
pg_liquid-0.1.7.tar.gz
Overview
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 2610 | pg_liquid | No | Yes | No | Yes | No | No | liquid |
Version
| OS / PG | PG19 | PG18 | PG17 | PG16 | PG15 |
|---|---|---|---|---|---|
| el8.x86_64 | N/A | PIGSTY 0.1.7 el8.x86_64.pg18 : pg_liquid_18 pg_liquid_18-0.1.7-1PGSTY.el8.x86_64.rpm
| PIGSTY 0.1.7 el8.x86_64.pg17 : pg_liquid_17 pg_liquid_17-0.1.7-1PGSTY.el8.x86_64.rpm
| PIGSTY 0.1.7 el8.x86_64.pg16 : pg_liquid_16 pg_liquid_16-0.1.7-1PGSTY.el8.x86_64.rpm
| PIGSTY 0.1.7 el8.x86_64.pg15 : pg_liquid_15 pg_liquid_15-0.1.7-1PGSTY.el8.x86_64.rpm
|
| el8.aarch64 | N/A | PIGSTY 0.1.7 el8.aarch64.pg18 : pg_liquid_18 pg_liquid_18-0.1.7-1PGSTY.el8.aarch64.rpm
| PIGSTY 0.1.7 el8.aarch64.pg17 : pg_liquid_17 pg_liquid_17-0.1.7-1PGSTY.el8.aarch64.rpm
| PIGSTY 0.1.7 el8.aarch64.pg16 : pg_liquid_16 pg_liquid_16-0.1.7-1PGSTY.el8.aarch64.rpm
| PIGSTY 0.1.7 el8.aarch64.pg15 : pg_liquid_15 pg_liquid_15-0.1.7-1PGSTY.el8.aarch64.rpm
|
| el9.x86_64 | PIGSTY 0.1.7 el9.x86_64.pg19 : pg_liquid_19 pg_liquid_19-0.1.7-1PGSTY.el9.x86_64.rpm
| PIGSTY 0.1.7 el9.x86_64.pg18 : pg_liquid_18 pg_liquid_18-0.1.7-1PGSTY.el9.x86_64.rpm
| PIGSTY 0.1.7 el9.x86_64.pg17 : pg_liquid_17 pg_liquid_17-0.1.7-1PGSTY.el9.x86_64.rpm
| PIGSTY 0.1.7 el9.x86_64.pg16 : pg_liquid_16 pg_liquid_16-0.1.7-1PGSTY.el9.x86_64.rpm
| PIGSTY 0.1.7 el9.x86_64.pg15 : pg_liquid_15 pg_liquid_15-0.1.7-1PGSTY.el9.x86_64.rpm
|
| el9.aarch64 | PIGSTY 0.1.7 el9.aarch64.pg19 : pg_liquid_19 pg_liquid_19-0.1.7-1PGSTY.el9.aarch64.rpm
| PIGSTY 0.1.7 el9.aarch64.pg18 : pg_liquid_18 pg_liquid_18-0.1.7-1PGSTY.el9.aarch64.rpm
| PIGSTY 0.1.7 el9.aarch64.pg17 : pg_liquid_17 pg_liquid_17-0.1.7-1PGSTY.el9.aarch64.rpm
| PIGSTY 0.1.7 el9.aarch64.pg16 : pg_liquid_16 pg_liquid_16-0.1.7-1PGSTY.el9.aarch64.rpm
| PIGSTY 0.1.7 el9.aarch64.pg15 : pg_liquid_15 pg_liquid_15-0.1.7-1PGSTY.el9.aarch64.rpm
|
| el10.x86_64 | PIGSTY 0.1.7 el10.x86_64.pg19 : pg_liquid_19 pg_liquid_19-0.1.7-1PGSTY.el10.x86_64.rpm
| PIGSTY 0.1.7 el10.x86_64.pg18 : pg_liquid_18 pg_liquid_18-0.1.7-1PGSTY.el10.x86_64.rpm
| PIGSTY 0.1.7 el10.x86_64.pg17 : pg_liquid_17 pg_liquid_17-0.1.7-1PGSTY.el10.x86_64.rpm
| PIGSTY 0.1.7 el10.x86_64.pg16 : pg_liquid_16 pg_liquid_16-0.1.7-1PGSTY.el10.x86_64.rpm
| PIGSTY 0.1.7 el10.x86_64.pg15 : pg_liquid_15 pg_liquid_15-0.1.7-1PGSTY.el10.x86_64.rpm
|
| el10.aarch64 | PIGSTY 0.1.7 el10.aarch64.pg19 : pg_liquid_19 pg_liquid_19-0.1.7-1PGSTY.el10.aarch64.rpm
| PIGSTY 0.1.7 el10.aarch64.pg18 : pg_liquid_18 pg_liquid_18-0.1.7-1PGSTY.el10.aarch64.rpm
| PIGSTY 0.1.7 el10.aarch64.pg17 : pg_liquid_17 pg_liquid_17-0.1.7-1PGSTY.el10.aarch64.rpm
| PIGSTY 0.1.7 el10.aarch64.pg16 : pg_liquid_16 pg_liquid_16-0.1.7-1PGSTY.el10.aarch64.rpm
| PIGSTY 0.1.7 el10.aarch64.pg15 : pg_liquid_15 pg_liquid_15-0.1.7-1PGSTY.el10.aarch64.rpm
|
| d12.x86_64 | PIGSTY 0.1.7 d12.x86_64.pg19 : postgresql-19-pg-liquid postgresql-19-pg-liquid_0.1.7-1PGSTY~bookworm_amd64.deb
| PIGSTY 0.1.7 d12.x86_64.pg18 : postgresql-18-pg-liquid postgresql-18-pg-liquid_0.1.7-1PGSTY~bookworm_amd64.deb
| PIGSTY 0.1.7 d12.x86_64.pg17 : postgresql-17-pg-liquid postgresql-17-pg-liquid_0.1.7-1PGSTY~bookworm_amd64.deb
| PIGSTY 0.1.7 d12.x86_64.pg16 : postgresql-16-pg-liquid postgresql-16-pg-liquid_0.1.7-1PGSTY~bookworm_amd64.deb
| PIGSTY 0.1.7 d12.x86_64.pg15 : postgresql-15-pg-liquid postgresql-15-pg-liquid_0.1.7-1PGSTY~bookworm_amd64.deb
|
| d12.aarch64 | PIGSTY 0.1.7 d12.aarch64.pg19 : postgresql-19-pg-liquid postgresql-19-pg-liquid_0.1.7-1PGSTY~bookworm_arm64.deb
| PIGSTY 0.1.7 d12.aarch64.pg18 : postgresql-18-pg-liquid postgresql-18-pg-liquid_0.1.7-1PGSTY~bookworm_arm64.deb
| PIGSTY 0.1.7 d12.aarch64.pg17 : postgresql-17-pg-liquid postgresql-17-pg-liquid_0.1.7-1PGSTY~bookworm_arm64.deb
| PIGSTY 0.1.7 d12.aarch64.pg16 : postgresql-16-pg-liquid postgresql-16-pg-liquid_0.1.7-1PGSTY~bookworm_arm64.deb
| PIGSTY 0.1.7 d12.aarch64.pg15 : postgresql-15-pg-liquid postgresql-15-pg-liquid_0.1.7-1PGSTY~bookworm_arm64.deb
|
| d13.x86_64 | PIGSTY 0.1.7 d13.x86_64.pg19 : postgresql-19-pg-liquid postgresql-19-pg-liquid_0.1.7-1PGSTY~trixie_amd64.deb
| PIGSTY 0.1.7 d13.x86_64.pg18 : postgresql-18-pg-liquid postgresql-18-pg-liquid_0.1.7-1PGSTY~trixie_amd64.deb
| PIGSTY 0.1.7 d13.x86_64.pg17 : postgresql-17-pg-liquid postgresql-17-pg-liquid_0.1.7-1PGSTY~trixie_amd64.deb
| PIGSTY 0.1.7 d13.x86_64.pg16 : postgresql-16-pg-liquid postgresql-16-pg-liquid_0.1.7-1PGSTY~trixie_amd64.deb
| PIGSTY 0.1.7 d13.x86_64.pg15 : postgresql-15-pg-liquid postgresql-15-pg-liquid_0.1.7-1PGSTY~trixie_amd64.deb
|
| d13.aarch64 | PIGSTY 0.1.7 d13.aarch64.pg19 : postgresql-19-pg-liquid postgresql-19-pg-liquid_0.1.7-1PGSTY~trixie_arm64.deb
| PIGSTY 0.1.7 d13.aarch64.pg18 : postgresql-18-pg-liquid postgresql-18-pg-liquid_0.1.7-1PGSTY~trixie_arm64.deb
| PIGSTY 0.1.7 d13.aarch64.pg17 : postgresql-17-pg-liquid postgresql-17-pg-liquid_0.1.7-1PGSTY~trixie_arm64.deb
| PIGSTY 0.1.7 d13.aarch64.pg16 : postgresql-16-pg-liquid postgresql-16-pg-liquid_0.1.7-1PGSTY~trixie_arm64.deb
| PIGSTY 0.1.7 d13.aarch64.pg15 : postgresql-15-pg-liquid postgresql-15-pg-liquid_0.1.7-1PGSTY~trixie_arm64.deb
|
| u22.x86_64 | PIGSTY 0.1.7 u22.x86_64.pg19 : postgresql-19-pg-liquid postgresql-19-pg-liquid_0.1.7-1PGSTY~jammy_amd64.deb
| PIGSTY 0.1.7 u22.x86_64.pg18 : postgresql-18-pg-liquid postgresql-18-pg-liquid_0.1.7-1PGSTY~jammy_amd64.deb
| PIGSTY 0.1.7 u22.x86_64.pg17 : postgresql-17-pg-liquid postgresql-17-pg-liquid_0.1.7-1PGSTY~jammy_amd64.deb
| PIGSTY 0.1.7 u22.x86_64.pg16 : postgresql-16-pg-liquid postgresql-16-pg-liquid_0.1.7-1PGSTY~jammy_amd64.deb
| PIGSTY 0.1.7 u22.x86_64.pg15 : postgresql-15-pg-liquid postgresql-15-pg-liquid_0.1.7-1PGSTY~jammy_amd64.deb
|
| u22.aarch64 | PIGSTY 0.1.7 u22.aarch64.pg19 : postgresql-19-pg-liquid postgresql-19-pg-liquid_0.1.7-1PGSTY~jammy_arm64.deb
| PIGSTY 0.1.7 u22.aarch64.pg18 : postgresql-18-pg-liquid postgresql-18-pg-liquid_0.1.7-1PGSTY~jammy_arm64.deb
| PIGSTY 0.1.7 u22.aarch64.pg17 : postgresql-17-pg-liquid postgresql-17-pg-liquid_0.1.7-1PGSTY~jammy_arm64.deb
| PIGSTY 0.1.7 u22.aarch64.pg16 : postgresql-16-pg-liquid postgresql-16-pg-liquid_0.1.7-1PGSTY~jammy_arm64.deb
| PIGSTY 0.1.7 u22.aarch64.pg15 : postgresql-15-pg-liquid postgresql-15-pg-liquid_0.1.7-1PGSTY~jammy_arm64.deb
|
| u24.x86_64 | PIGSTY 0.1.7 u24.x86_64.pg19 : postgresql-19-pg-liquid postgresql-19-pg-liquid_0.1.7-1PGSTY~noble_amd64.deb
| PIGSTY 0.1.7 u24.x86_64.pg18 : postgresql-18-pg-liquid postgresql-18-pg-liquid_0.1.7-1PGSTY~noble_amd64.deb
| PIGSTY 0.1.7 u24.x86_64.pg17 : postgresql-17-pg-liquid postgresql-17-pg-liquid_0.1.7-1PGSTY~noble_amd64.deb
| PIGSTY 0.1.7 u24.x86_64.pg16 : postgresql-16-pg-liquid postgresql-16-pg-liquid_0.1.7-1PGSTY~noble_amd64.deb
| PIGSTY 0.1.7 u24.x86_64.pg15 : postgresql-15-pg-liquid postgresql-15-pg-liquid_0.1.7-1PGSTY~noble_amd64.deb
|
| u24.aarch64 | PIGSTY 0.1.7 u24.aarch64.pg19 : postgresql-19-pg-liquid postgresql-19-pg-liquid_0.1.7-1PGSTY~noble_arm64.deb
| PIGSTY 0.1.7 u24.aarch64.pg18 : postgresql-18-pg-liquid postgresql-18-pg-liquid_0.1.7-1PGSTY~noble_arm64.deb
| PIGSTY 0.1.7 u24.aarch64.pg17 : postgresql-17-pg-liquid postgresql-17-pg-liquid_0.1.7-1PGSTY~noble_arm64.deb
| PIGSTY 0.1.7 u24.aarch64.pg16 : postgresql-16-pg-liquid postgresql-16-pg-liquid_0.1.7-1PGSTY~noble_arm64.deb
| PIGSTY 0.1.7 u24.aarch64.pg15 : postgresql-15-pg-liquid postgresql-15-pg-liquid_0.1.7-1PGSTY~noble_arm64.deb
|
| u26.x86_64 | PIGSTY 0.1.7 u26.x86_64.pg19 : postgresql-19-pg-liquid postgresql-19-pg-liquid_0.1.7-1PGSTY~resolute_amd64.deb
| PIGSTY 0.1.7 u26.x86_64.pg18 : postgresql-18-pg-liquid postgresql-18-pg-liquid_0.1.7-1PGSTY~resolute_amd64.deb
| PIGSTY 0.1.7 u26.x86_64.pg17 : postgresql-17-pg-liquid postgresql-17-pg-liquid_0.1.7-1PGSTY~resolute_amd64.deb
| PIGSTY 0.1.7 u26.x86_64.pg16 : postgresql-16-pg-liquid postgresql-16-pg-liquid_0.1.7-1PGSTY~resolute_amd64.deb
| PIGSTY 0.1.7 u26.x86_64.pg15 : postgresql-15-pg-liquid postgresql-15-pg-liquid_0.1.7-1PGSTY~resolute_amd64.deb
|
| u26.aarch64 | PIGSTY 0.1.7 u26.aarch64.pg19 : postgresql-19-pg-liquid postgresql-19-pg-liquid_0.1.7-1PGSTY~resolute_arm64.deb
| PIGSTY 0.1.7 u26.aarch64.pg18 : postgresql-18-pg-liquid postgresql-18-pg-liquid_0.1.7-1PGSTY~resolute_arm64.deb
| PIGSTY 0.1.7 u26.aarch64.pg17 : postgresql-17-pg-liquid postgresql-17-pg-liquid_0.1.7-1PGSTY~resolute_arm64.deb
| PIGSTY 0.1.7 u26.aarch64.pg16 : postgresql-16-pg-liquid postgresql-16-pg-liquid_0.1.7-1PGSTY~resolute_arm64.deb
| PIGSTY 0.1.7 u26.aarch64.pg15 : postgresql-15-pg-liquid postgresql-15-pg-liquid_0.1.7-1PGSTY~resolute_arm64.deb
|
Build
You can build the RPM / DEB packages for pg_liquid using pig build:
Install
You can install pg_liquid directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Install
pig
dnf
apt
Create Extension:
Usage
Source: Docs site, README, Release v0.1.7, SQL install script
pg_liquid brings Liquid-style graph and compound queries into PostgreSQL. It stores graph state in the liquid schema and exposes SQL entry points for plain queries, principal-bound queries, and least-privilege reads.
Core query surface
liquid.query(program text): executes Liquid facts, rules, and one terminal query.liquid.query_as(principal text, program text): principal-bound execution.liquid.read_as(principal text, program text): least-privilege read wrapper; intended for application-facing reads.
Language and modeling features
- facts and rules terminated by
. - one terminal
?query per program - graph edges via
Edge(...) - typed compounds such as
Type@(role=value, ...) - query-local recursive rules
- built-in policy compounds such as
CompoundReadByRoleandliquid/acts_for
Row normalizers
liquid.create_row_normalizer(...): projects relational rows into Liquid compounds.liquid.rebuild_row_normalizer(...): regenerates bindings after table changes.liquid.drop_row_normalizer(...): removes the normalizer and optionally purges generated bindings.
Caveats
- Upstream validates the extension on PostgreSQL 14 through 18.
query_asandread_asare revoked fromPUBLICin the shipped SQL; grant them deliberately.read_as(...)is the safer application entry point when clients should not assert new facts.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)