pgrdf
Overview
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 2640 | pgrdf | No | Yes | Yes | Yes | No | No | pgrdf |
Production hook/cache deployments should preload pgrdf.
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 0.6.40 | 1817161514 | pgrdf | - |
| RPM | PIGSTY | 0.6.40 | 1817161514 | pgrdf_$v | - |
| DEB | PIGSTY | 0.6.40 | 1817161514 | postgresql-$v-pgrdf | - |
| OS / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY 0.6.39 el8.x86_64.pg18 : pgrdf_18 pgrdf_18-0.6.39-1PGSTY.el8.x86_64.rpm
| PIGSTY 0.6.39 el8.x86_64.pg17 : pgrdf_17 pgrdf_17-0.6.39-1PGSTY.el8.x86_64.rpm
| PIGSTY 0.6.39 el8.x86_64.pg16 : pgrdf_16 pgrdf_16-0.6.39-1PGSTY.el8.x86_64.rpm
| PIGSTY 0.6.39 el8.x86_64.pg15 : pgrdf_15 pgrdf_15-0.6.39-1PGSTY.el8.x86_64.rpm
| PIGSTY 0.6.39 el8.x86_64.pg14 : pgrdf_14 pgrdf_14-0.6.39-1PGSTY.el8.x86_64.rpm
|
| el8.aarch64 | PIGSTY 0.6.39 el8.aarch64.pg18 : pgrdf_18 pgrdf_18-0.6.39-1PGSTY.el8.aarch64.rpm
| PIGSTY 0.6.39 el8.aarch64.pg17 : pgrdf_17 pgrdf_17-0.6.39-1PGSTY.el8.aarch64.rpm
| PIGSTY 0.6.39 el8.aarch64.pg16 : pgrdf_16 pgrdf_16-0.6.39-1PGSTY.el8.aarch64.rpm
| PIGSTY 0.6.39 el8.aarch64.pg15 : pgrdf_15 pgrdf_15-0.6.39-1PGSTY.el8.aarch64.rpm
| PIGSTY 0.6.39 el8.aarch64.pg14 : pgrdf_14 pgrdf_14-0.6.39-1PGSTY.el8.aarch64.rpm
|
| el9.x86_64 | PIGSTY 0.6.39 el9.x86_64.pg18 : pgrdf_18 pgrdf_18-0.6.39-1PGSTY.el9.x86_64.rpm
| PIGSTY 0.6.39 el9.x86_64.pg17 : pgrdf_17 pgrdf_17-0.6.39-1PGSTY.el9.x86_64.rpm
| PIGSTY 0.6.39 el9.x86_64.pg16 : pgrdf_16 pgrdf_16-0.6.39-1PGSTY.el9.x86_64.rpm
| PIGSTY 0.6.39 el9.x86_64.pg15 : pgrdf_15 pgrdf_15-0.6.39-1PGSTY.el9.x86_64.rpm
| PIGSTY 0.6.39 el9.x86_64.pg14 : pgrdf_14 pgrdf_14-0.6.39-1PGSTY.el9.x86_64.rpm
|
| el9.aarch64 | PIGSTY 0.6.39 el9.aarch64.pg18 : pgrdf_18 pgrdf_18-0.6.39-1PGSTY.el9.aarch64.rpm
| PIGSTY 0.6.39 el9.aarch64.pg17 : pgrdf_17 pgrdf_17-0.6.39-1PGSTY.el9.aarch64.rpm
| PIGSTY 0.6.39 el9.aarch64.pg16 : pgrdf_16 pgrdf_16-0.6.39-1PGSTY.el9.aarch64.rpm
| PIGSTY 0.6.39 el9.aarch64.pg15 : pgrdf_15 pgrdf_15-0.6.39-1PGSTY.el9.aarch64.rpm
| PIGSTY 0.6.39 el9.aarch64.pg14 : pgrdf_14 pgrdf_14-0.6.39-1PGSTY.el9.aarch64.rpm
|
| el10.x86_64 | PIGSTY 0.6.39 el10.x86_64.pg18 : pgrdf_18 pgrdf_18-0.6.39-1PGSTY.el10.x86_64.rpm
| PIGSTY 0.6.39 el10.x86_64.pg17 : pgrdf_17 pgrdf_17-0.6.39-1PGSTY.el10.x86_64.rpm
| PIGSTY 0.6.39 el10.x86_64.pg16 : pgrdf_16 pgrdf_16-0.6.39-1PGSTY.el10.x86_64.rpm
| PIGSTY 0.6.39 el10.x86_64.pg15 : pgrdf_15 pgrdf_15-0.6.39-1PGSTY.el10.x86_64.rpm
| PIGSTY 0.6.39 el10.x86_64.pg14 : pgrdf_14 pgrdf_14-0.6.39-1PGSTY.el10.x86_64.rpm
|
| el10.aarch64 | PIGSTY 0.6.39 el10.aarch64.pg18 : pgrdf_18 pgrdf_18-0.6.39-1PGSTY.el10.aarch64.rpm
| PIGSTY 0.6.39 el10.aarch64.pg17 : pgrdf_17 pgrdf_17-0.6.39-1PGSTY.el10.aarch64.rpm
| PIGSTY 0.6.39 el10.aarch64.pg16 : pgrdf_16 pgrdf_16-0.6.39-1PGSTY.el10.aarch64.rpm
| PIGSTY 0.6.39 el10.aarch64.pg15 : pgrdf_15 pgrdf_15-0.6.39-1PGSTY.el10.aarch64.rpm
| PIGSTY 0.6.39 el10.aarch64.pg14 : pgrdf_14 pgrdf_14-0.6.39-1PGSTY.el10.aarch64.rpm
|
| d12.x86_64 | PIGSTY 0.6.39 d12.x86_64.pg18 : postgresql-18-pgrdf postgresql-18-pgrdf_0.6.39-1PGSTY~bookworm_amd64.deb
| PIGSTY 0.6.39 d12.x86_64.pg17 : postgresql-17-pgrdf postgresql-17-pgrdf_0.6.39-1PGSTY~bookworm_amd64.deb
| PIGSTY 0.6.39 d12.x86_64.pg16 : postgresql-16-pgrdf postgresql-16-pgrdf_0.6.39-1PGSTY~bookworm_amd64.deb
| PIGSTY 0.6.39 d12.x86_64.pg15 : postgresql-15-pgrdf postgresql-15-pgrdf_0.6.39-1PGSTY~bookworm_amd64.deb
| PIGSTY 0.6.39 d12.x86_64.pg14 : postgresql-14-pgrdf postgresql-14-pgrdf_0.6.39-1PGSTY~bookworm_amd64.deb
|
| d12.aarch64 | PIGSTY 0.6.39 d12.aarch64.pg18 : postgresql-18-pgrdf postgresql-18-pgrdf_0.6.39-1PGSTY~bookworm_arm64.deb
| PIGSTY 0.6.39 d12.aarch64.pg17 : postgresql-17-pgrdf postgresql-17-pgrdf_0.6.39-1PGSTY~bookworm_arm64.deb
| PIGSTY 0.6.39 d12.aarch64.pg16 : postgresql-16-pgrdf postgresql-16-pgrdf_0.6.39-1PGSTY~bookworm_arm64.deb
| PIGSTY 0.6.39 d12.aarch64.pg15 : postgresql-15-pgrdf postgresql-15-pgrdf_0.6.39-1PGSTY~bookworm_arm64.deb
| PIGSTY 0.6.39 d12.aarch64.pg14 : postgresql-14-pgrdf postgresql-14-pgrdf_0.6.39-1PGSTY~bookworm_arm64.deb
|
| d13.x86_64 | PIGSTY 0.6.39 d13.x86_64.pg18 : postgresql-18-pgrdf postgresql-18-pgrdf_0.6.39-1PGSTY~trixie_amd64.deb
| PIGSTY 0.6.39 d13.x86_64.pg17 : postgresql-17-pgrdf postgresql-17-pgrdf_0.6.39-1PGSTY~trixie_amd64.deb
| PIGSTY 0.6.39 d13.x86_64.pg16 : postgresql-16-pgrdf postgresql-16-pgrdf_0.6.39-1PGSTY~trixie_amd64.deb
| PIGSTY 0.6.39 d13.x86_64.pg15 : postgresql-15-pgrdf postgresql-15-pgrdf_0.6.39-1PGSTY~trixie_amd64.deb
| PIGSTY 0.6.39 d13.x86_64.pg14 : postgresql-14-pgrdf postgresql-14-pgrdf_0.6.39-1PGSTY~trixie_amd64.deb
|
| d13.aarch64 | PIGSTY 0.6.39 d13.aarch64.pg18 : postgresql-18-pgrdf postgresql-18-pgrdf_0.6.39-1PGSTY~trixie_arm64.deb
| PIGSTY 0.6.39 d13.aarch64.pg17 : postgresql-17-pgrdf postgresql-17-pgrdf_0.6.39-1PGSTY~trixie_arm64.deb
| PIGSTY 0.6.39 d13.aarch64.pg16 : postgresql-16-pgrdf postgresql-16-pgrdf_0.6.39-1PGSTY~trixie_arm64.deb
| PIGSTY 0.6.39 d13.aarch64.pg15 : postgresql-15-pgrdf postgresql-15-pgrdf_0.6.39-1PGSTY~trixie_arm64.deb
| PIGSTY 0.6.39 d13.aarch64.pg14 : postgresql-14-pgrdf postgresql-14-pgrdf_0.6.39-1PGSTY~trixie_arm64.deb
|
| u22.x86_64 | PIGSTY 0.6.39 u22.x86_64.pg18 : postgresql-18-pgrdf postgresql-18-pgrdf_0.6.39-1PGSTY~jammy_amd64.deb
| PIGSTY 0.6.39 u22.x86_64.pg17 : postgresql-17-pgrdf postgresql-17-pgrdf_0.6.39-1PGSTY~jammy_amd64.deb
| PIGSTY 0.6.39 u22.x86_64.pg16 : postgresql-16-pgrdf postgresql-16-pgrdf_0.6.39-1PGSTY~jammy_amd64.deb
| PIGSTY 0.6.39 u22.x86_64.pg15 : postgresql-15-pgrdf postgresql-15-pgrdf_0.6.39-1PGSTY~jammy_amd64.deb
| PIGSTY 0.6.39 u22.x86_64.pg14 : postgresql-14-pgrdf postgresql-14-pgrdf_0.6.39-1PGSTY~jammy_amd64.deb
|
| u22.aarch64 | PIGSTY 0.6.39 u22.aarch64.pg18 : postgresql-18-pgrdf postgresql-18-pgrdf_0.6.39-1PGSTY~jammy_arm64.deb
| PIGSTY 0.6.39 u22.aarch64.pg17 : postgresql-17-pgrdf postgresql-17-pgrdf_0.6.39-1PGSTY~jammy_arm64.deb
| PIGSTY 0.6.39 u22.aarch64.pg16 : postgresql-16-pgrdf postgresql-16-pgrdf_0.6.39-1PGSTY~jammy_arm64.deb
| PIGSTY 0.6.39 u22.aarch64.pg15 : postgresql-15-pgrdf postgresql-15-pgrdf_0.6.39-1PGSTY~jammy_arm64.deb
| PIGSTY 0.6.39 u22.aarch64.pg14 : postgresql-14-pgrdf postgresql-14-pgrdf_0.6.39-1PGSTY~jammy_arm64.deb
|
| u24.x86_64 | PIGSTY 0.6.39 u24.x86_64.pg18 : postgresql-18-pgrdf postgresql-18-pgrdf_0.6.39-1PGSTY~noble_amd64.deb
| PIGSTY 0.6.39 u24.x86_64.pg17 : postgresql-17-pgrdf postgresql-17-pgrdf_0.6.39-1PGSTY~noble_amd64.deb
| PIGSTY 0.6.39 u24.x86_64.pg16 : postgresql-16-pgrdf postgresql-16-pgrdf_0.6.39-1PGSTY~noble_amd64.deb
| PIGSTY 0.6.39 u24.x86_64.pg15 : postgresql-15-pgrdf postgresql-15-pgrdf_0.6.39-1PGSTY~noble_amd64.deb
| PIGSTY 0.6.39 u24.x86_64.pg14 : postgresql-14-pgrdf postgresql-14-pgrdf_0.6.39-1PGSTY~noble_amd64.deb
|
| u24.aarch64 | PIGSTY 0.6.39 u24.aarch64.pg18 : postgresql-18-pgrdf postgresql-18-pgrdf_0.6.39-1PGSTY~noble_arm64.deb
| PIGSTY 0.6.39 u24.aarch64.pg17 : postgresql-17-pgrdf postgresql-17-pgrdf_0.6.39-1PGSTY~noble_arm64.deb
| PIGSTY 0.6.39 u24.aarch64.pg16 : postgresql-16-pgrdf postgresql-16-pgrdf_0.6.39-1PGSTY~noble_arm64.deb
| PIGSTY 0.6.39 u24.aarch64.pg15 : postgresql-15-pgrdf postgresql-15-pgrdf_0.6.39-1PGSTY~noble_arm64.deb
| PIGSTY 0.6.39 u24.aarch64.pg14 : postgresql-14-pgrdf postgresql-14-pgrdf_0.6.39-1PGSTY~noble_arm64.deb
|
| u26.x86_64 | PIGSTY 0.6.39 u26.x86_64.pg18 : postgresql-18-pgrdf postgresql-18-pgrdf_0.6.39-1PGSTY~resolute_amd64.deb
| PIGSTY 0.6.39 u26.x86_64.pg17 : postgresql-17-pgrdf postgresql-17-pgrdf_0.6.39-1PGSTY~resolute_amd64.deb
| PIGSTY 0.6.39 u26.x86_64.pg16 : postgresql-16-pgrdf postgresql-16-pgrdf_0.6.39-1PGSTY~resolute_amd64.deb
| PIGSTY 0.6.39 u26.x86_64.pg15 : postgresql-15-pgrdf postgresql-15-pgrdf_0.6.39-1PGSTY~resolute_amd64.deb
| PIGSTY 0.6.39 u26.x86_64.pg14 : postgresql-14-pgrdf postgresql-14-pgrdf_0.6.39-1PGSTY~resolute_amd64.deb
|
| u26.aarch64 | PIGSTY 0.6.39 u26.aarch64.pg18 : postgresql-18-pgrdf postgresql-18-pgrdf_0.6.39-1PGSTY~resolute_arm64.deb
| PIGSTY 0.6.39 u26.aarch64.pg17 : postgresql-17-pgrdf postgresql-17-pgrdf_0.6.39-1PGSTY~resolute_arm64.deb
| PIGSTY 0.6.39 u26.aarch64.pg16 : postgresql-16-pgrdf postgresql-16-pgrdf_0.6.39-1PGSTY~resolute_arm64.deb
| PIGSTY 0.6.39 u26.aarch64.pg15 : postgresql-15-pgrdf postgresql-15-pgrdf_0.6.39-1PGSTY~resolute_arm64.deb
| PIGSTY 0.6.39 u26.aarch64.pg14 : postgresql-14-pgrdf postgresql-14-pgrdf_0.6.39-1PGSTY~resolute_arm64.deb
|
Build
You can build the RPM / DEB packages for pgrdf using pig build:
Install
You can install pgrdf directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Preload:
Create Extension:
Usage
Sources:
- 0.6.40 release
- pgrdf.control
- README.md
- Cargo.toml
- guide/01-install.md
- guide/tour.md
- guide/05-graphs.md
- guide/06-validation-recipes.md
- 0.6.39 to 0.6.40 upgrade
pgrdf 0.6.40 stores RDF graphs in PostgreSQL with Turtle/TriG/N-Quads ingestion, SPARQL queries and updates, SHACL validation, and RDFS/OWL reasoning. Preload pgrdf and restart before creating the extension as a superuser.
Core Workflow
Operational Boundaries
The fixed pgrdf schema provides add_graph, graph_id, parse_turtle, load_turtle, sparql, materialize, validate, stats and surface. File loaders read server-side paths; grant access deliberately. can_clear_graphs() reports graph-clear privileges. Non-owner graph writes require the documented underlying table grants; graph locks still apply. shacl_capability() reports the supported validation surface, and path-depth/truncation settings bound traversal. Source features cover PostgreSQL 14–18; published Linux binaries target PG18. Version 0.6.39 allocates graph IDs from a non-reusing sequence; the IRI is the graph identity, and gaps are normal. After installing the matching library, run ALTER EXTENSION pgrdf UPDATE in each database. A newer library rejects old SQL with SQLSTATE 55000. Do not use the broken 0.6.35–0.6.38 PGXN source archives. Preserve graph/dictionary data together in verified backups.
Ownership Repair in 0.6.40
The 0.6.39 upgrade could leave _pgrdf_graph_id_seq owned by the upgrade executor after storage tables had been transferred to another role, preventing new graph creation. Version 0.6.40 aligns that sequence with the owner of _pgrdf_quads; granting sequence usage alone is insufficient. pgrdf.ownership_drift() reports mismatched storage owners and proposed repair commands. Review them before applying role changes. Upgrade SQL in each database after installing matching binaries; versions 0.6.34–0.6.38 can upgrade directly to 0.6.40.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)