plprql
Use PRQL in PostgreSQL - Pipelined Relational Query Language
plprql : Use PRQL in PostgreSQL - Pipelined Relational Query Language
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 3040 | plprql | plprql | 18.0.1 |
LANG | Apache-2.0 | Rust |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --s-d-- | No | Yes | No | Yes | no | no |
| Relationships | |
|---|---|
| See Also | pg_duckdb pg_lake tablefunc pg_parquet pg_ducklake duckdb_fdw extra_window_functions first_last_agg pg_mooncake |
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PIGSTY | 18.0.1 |
18 17 16 15 14 | plprql |
- |
| RPM | PIGSTY | 18.0.1 |
18 17 16 15 14 | plprql_$v |
- |
| DEB | PIGSTY | 18.0.1 |
18 17 16 15 14 | postgresql-$v-plprql |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 |
| el8.aarch64 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 |
| el9.x86_64 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 |
| el9.aarch64 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 |
| el10.x86_64 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 |
| el10.aarch64 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 |
| d12.x86_64 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 |
| d12.aarch64 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 |
| d13.x86_64 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 |
| d13.aarch64 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 |
| u22.x86_64 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 |
| u22.aarch64 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 |
| u24.x86_64 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 |
| u24.aarch64 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 |
| u26.x86_64 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 |
| u26.aarch64 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 | PIGSTY 18.0.1 |
Source
github.com/kaspermarstal/plprql
plprql-18.0.1.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Create this extension with:
Usage
plprql: Use PRQL in PostgreSQL - Pipelined Relational Query Language
plprql enables writing PostgreSQL functions using PRQL (Pipelined Relational Query Language), a modern language that compiles to SQL with a pipeline syntax.
Create Functions with PRQL
Execute PRQL Directly
Use Cursors for Large Results
Inspect Compiled SQL
PRQL Syntax Overview
PRQL uses pipeline transformations:
Limitations
PRQL only supports SELECT statements. For INSERT, UPDATE, and DELETE, use SQL or PL/pgSQL.