pg_tle
Trusted Language Extensions for PostgreSQL
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pg_tle | 1.5.2 | LANG | Apache-2.0 | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 3000 | pg_tle | No | Yes | Yes | Yes | No | No | pgtle |
require bison flex to build
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.5.2 | 1817161514 | pg_tle | - |
| RPM | PGDG | 1.5.2 | 1817161514 | pg_tle_$v | - |
| DEB | PIGSTY | 1.5.2 | 1817161514 | postgresql-$v-pg-tle | - |
Build
You can build the RPM / DEB packages for pg_tle using pig build:
Install
You can install pg_tle directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Install
pig
dnf
apt
Preload:
Create Extension:
Usage
pg_tle lets you create and manage PostgreSQL extensions using trusted languages (SQL, PL/pgSQL, PL/v8, PL/Perl) without requiring filesystem access or server restarts.
Add pg_tle to shared_preload_libraries in postgresql.conf:
Install a TLE Extension
Manage Extension Versions
Use the TLE Extension
Remove a TLE Extension
Hooks and Features
Register custom hooks (e.g., password check hooks):
Key Functions
| Function | Description |
|---|---|
pgtle.install_extension() | Install a new TLE extension |
pgtle.install_update_path() | Add an upgrade path between versions |
pgtle.set_default_version() | Set the default version for an extension |
pgtle.uninstall_extension() | Remove a TLE extension |
pgtle.register_feature() | Register a feature hook |
pgtle.unregister_feature() | Unregister a feature hook |
pgtle.available_extensions() | List available TLE extensions |
pgtle.available_extension_versions() | List available versions |
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)