pljs
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pljs | 1.0.5 | LANG | PostgreSQL | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 3011 | pljs | No | Yes | No | Yes | No | No | pg_catalog |
with submodules, hot fix with CONFIG_VERSION
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | MIXED | 1.0.5 | 1817161514 | pljs | - |
| RPM | PIGSTY | 1.0.5 | 1817161514 | pljs_$v | - |
| DEB | PIGSTY | 1.0.5 | 1817161514 | postgresql-$v-pljs | - |
Build
You can build the RPM / DEB packages for pljs using pig build:
Install
You can install pljs directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Create Extension:
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).
Utility Functions
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)