pg_tle
Trusted Language Extensions for PostgreSQL
pg_tle : Trusted Language Extensions for PostgreSQL
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 3000 | pg_tle | pg_tle | 1.5.2 |
LANG | Apache-2.0 | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --sLd-- | No | Yes | Yes | Yes | no | no |
| Relationships | |
|---|---|
| Schemas | pgtle |
| See Also | plv8 pljs pgwasm pllua pg_extension_base pgextwlist pg_readme |
require bison flex to build
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.5.2 |
18 17 16 15 14 | pg_tle |
- |
| RPM | PGDG | 1.5.2 |
18 17 16 15 14 | pg_tle_$v |
- |
| DEB | PIGSTY | 1.5.2 |
18 17 16 15 14 | postgresql-$v-pg-tle |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 |
| el8.aarch64 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 |
| el9.x86_64 | PGDG 1.5.2 | PGDG 1.5.2 | PGDG 1.5.2 | PGDG 1.5.2 | PGDG 1.5.2 |
| el9.aarch64 | PGDG 1.5.2 | PGDG 1.5.2 | PGDG 1.5.2 | PGDG 1.5.2 | PGDG 1.5.2 |
| el10.x86_64 | PGDG 1.5.2 | PGDG 1.5.2 | PGDG 1.5.2 | PGDG 1.5.2 | PGDG 1.5.2 |
| el10.aarch64 | PGDG 1.5.2 | PGDG 1.5.2 | PGDG 1.5.2 | PGDG 1.5.2 | PGDG 1.5.2 |
| d12.x86_64 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 |
| d12.aarch64 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 |
| d13.x86_64 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 |
| d13.aarch64 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 |
| u22.x86_64 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 |
| u22.aarch64 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 |
| u24.x86_64 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 |
| u24.aarch64 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 |
| u26.x86_64 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 |
| u26.aarch64 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 | PIGSTY 1.5.2 |
Source
github.com/aws/pg_tle
pg_tle-1.5.2.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Config this extension to shared_preload_libraries:
Create this extension with:
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 |