pljs
PL/JS trusted procedural language
pljs : PL/JS trusted procedural language
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 3011 | pljs | pljs | 1.0.5 |
LANG | PostgreSQL | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --s-d-- | No | Yes | No | Yes | no | no |
with submodules, hot fix with CONFIG_VERSION
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | MIXED | 1.0.5 |
18 17 16 15 14 | pljs |
- |
| RPM | PIGSTY | 1.0.5 |
18 17 16 15 14 | pljs_$v |
- |
| DEB | PIGSTY | 1.0.5 |
18 17 16 15 14 | postgresql-$v-pljs |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY 1.0.5 | PIGSTY 1.0.5 | PIGSTY 1.0.5 | PIGSTY 1.0.5 | PIGSTY 1.0.5 |
| el8.aarch64 | PIGSTY 1.0.5 | PIGSTY 1.0.5 | PIGSTY 1.0.5 | PIGSTY 1.0.5 | PIGSTY 1.0.5 |
| el9.x86_64 | PIGSTY 1.0.5 | PIGSTY 1.0.5 | PIGSTY 1.0.5 | PIGSTY 1.0.5 | PIGSTY 1.0.5 |
| el9.aarch64 | PIGSTY 1.0.5 | PIGSTY 1.0.5 | PIGSTY 1.0.5 | PIGSTY 1.0.5 | PIGSTY 1.0.5 |
| el10.x86_64 | PIGSTY 1.0.5 | PIGSTY 1.0.5 | PIGSTY 1.0.5 | PIGSTY 1.0.5 | PIGSTY 1.0.5 |
| el10.aarch64 | PIGSTY 1.0.5 | PIGSTY 1.0.5 | PIGSTY 1.0.5 | PIGSTY 1.0.5 | PIGSTY 1.0.5 |
| d12.x86_64 | PGDG 1.0.5 | PGDG 1.0.5 | PGDG 1.0.5 | PGDG 1.0.5 | PGDG 1.0.5 |
| d12.aarch64 | PGDG 1.0.5 | PGDG 1.0.5 | PGDG 1.0.5 | PGDG 1.0.5 | PGDG 1.0.5 |
| d13.x86_64 | PGDG 1.0.5 | PGDG 1.0.5 | PGDG 1.0.5 | PGDG 1.0.5 | PGDG 1.0.5 |
| d13.aarch64 | PGDG 1.0.5 | PGDG 1.0.5 | PGDG 1.0.5 | PGDG 1.0.5 | PGDG 1.0.5 |
| u22.x86_64 | PGDG 1.0.5 | PGDG 1.0.5 | PGDG 1.0.5 | PGDG 1.0.5 | PGDG 1.0.5 |
| u22.aarch64 | PGDG 1.0.5 | PGDG 1.0.5 | PGDG 1.0.5 | PGDG 1.0.5 | PGDG 1.0.5 |
| u24.x86_64 | PGDG 1.0.5 | PGDG 1.0.5 | PGDG 1.0.5 | PGDG 1.0.5 | PGDG 1.0.5 |
| u24.aarch64 | PGDG 1.0.5 | PGDG 1.0.5 | PGDG 1.0.5 | PGDG 1.0.5 | PGDG 1.0.5 |
| u26.x86_64 | PGDG 1.0.5 | PGDG 1.0.5 | PGDG 1.0.5 | PGDG 1.0.5 | PGDG 1.0.5 |
| u26.aarch64 | PGDG 1.0.5 | PGDG 1.0.5 | PGDG 1.0.5 | PGDG 1.0.5 | PGDG 1.0.5 |
Source
github.com/plv8/pljs
pljs-1.0.5.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Create this extension with:
Usage
pljs enables writing PostgreSQL functions in JavaScript using the QuickJS engine.
Create Functions
Database Access
Execute with arguments:
Prepared Statements
Cursors
Subtransactions
Logging
Find Other PLJS Functions
Window Functions
Window object methods: get_current_position(), get_partition_row_count(), set_mark_position(pos), rows_are_peers(pos1, pos2), get_func_arg_in_partition(argno, relpos, seektype, mark_pos), get_func_arg_in_frame(argno, relpos, seektype, mark_pos), get_func_arg_in_current(argno), get_partition_local(), set_partition_local(obj).