pg_scalpel
pg_scalpel · Janet-driven inspection and instrumentation inside a PostgreSQL backend.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 102315 | pg_scalpel | pg_scalpel | 0.1 | ADMIN | PostgreSQL | C |
PostgreSQL · 19
Usage
Sources:
pg_scalpel 0.1 exposes a Janet interpreter inside a PostgreSQL 19 Linux x86-64 backend for debugging and instrumentation.
Core Workflow
janet_eval(text) returns the last Janet value as text, with a VM lasting for the connection. The scalpel primitives resolve symbols, inspect structures, call C functions, install hooks and examine machine code. Static symbols and layouts require matching DWARF debug information.
Operational Boundaries
No preload or server restart is required. Installation and execution are enforced as superuser-only; revoking PUBLIC access is not a substitute for the runtime check. Janet and native primitives can execute OS commands, read/write arbitrary memory and patch code. Use disposable diagnostic environments and never treat this interpreter as a sandbox.