---
title: "Trusted Language Extensions for Postgres"
description: "Trusted Language Extensions (TLEs), enabled by AWS's pg_tle extension, let Postgres extensions written in trusted languages like SQL, pl/pgsql, plv8 or pl/rust be installed from any database client via pgtle.install_extension(), without filesystem access on the server."
url: "https://swe.quest/articles/trusted-language-extensions-for-postgres-124fab4d0dac205e"
canonical: "https://supabase.com/blog/pg-tle"
source: "Supabase"
published: "2023-04-14"
difficulty: "easy"
kind: "Announcement"
reading_minutes: 4
tags: ["postgres","security","open-source"]
---

# Trusted Language Extensions for Postgres

A post on [Supabase](https://swe.quest/sources/supabase.md), published 2023-04-14, 4 min read, Announcement. Original: [https://supabase.com/blog/pg-tle](https://supabase.com/blog/pg-tle)

## Summary

Trusted Language Extensions (TLEs), enabled by AWS's pg\_tle extension, let Postgres extensions written in trusted languages like SQL, pl/pgsql, plv8 or pl/rust be installed from any database client via pgtle.install\_extension(), without filesystem access on the server. Because C extensions are dynamically linked into the Postgres process with raw memory access, cloud providers vet them slowly. Trusted languages obey Postgres security rules, so TLEs can be distributed safely. Supabase and AWS RDS (Postgres 14.5+) both ship pg\_tle, and Supabase's dbdev registry uses pgsql-http to install TLEs from a REST API using only SQL.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Security](https://swe.quest/tags/security.md) (Security)
- [Open source](https://swe.quest/tags/open-source.md) (Engineering practices)

## Prerequisites

- Postgres extensions ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- Postgres procedural languages ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))

## Keywords

pg\_tle, Trusted Language Extensions, Supabase, AWS RDS, dbdev, plv8, pl/rust, pgsql-http

## Related posts

- [dbdev: PostgreSQL Package Manager](https://swe.quest/articles/dbdev-postgresql-package-manager-58df87ba3a3de7e4.md): Supabase · 2023-04-14 · Medium · 7 min read · PostgreSQL, Build systems, Open source
  database.dev (dbdev) is a read-only preview of a package manager for PostgreSQL, playing the role npm or cargo play for other languages.
- [Bring Your Own Extensions to Serverless PostgreSQL](https://swe.quest/articles/bring-your-own-extensions-to-serverless-postgresql-6c4a9e42827f5129.md): Neon · 2024-01-17 · Easy · 4 min read · PostgreSQL, Serverless, Multi-tenancy
  Neon now supports private and custom Postgres extensions in its serverless platform via Dynamic Extension Loading, available in beta on request.
- [Shipping psql without psql: a pure-TypeScript Postgres client in neonctl](https://swe.quest/articles/shipping-psql-without-psql-a-pure-typescript-postgres-client-in-neonctl-621e0ac130c536d1.md): Neon · 2026-06-12 · Medium · 7 min read · PostgreSQL, TypeScript, Testing, AI for coding, Developer tools
  neonctl now embeds a pure-TypeScript reimplementation of psql that activates when no native psql is on the PATH.
- [Postgres Language Server: Initial Release](https://swe.quest/articles/postgres-language-server-initial-release-4b7148c84b3bcff0.md): Supabase · 2025-03-29 · Medium · 13 min read · PostgreSQL, Developer tools, Rust, SQL, Static analysis
  Postgres Language Server is an LSP implementation for Postgres offering autocompletion, syntax error highlighting, type-checking via PREPARE/EXPLAIN against a live database, and a Squawk-inspired linter, available for VSCode, Neovim and as a CLI.
- [postgres.new: In-browser Postgres with an AI interface](https://swe.quest/articles/postgres-new-in-browser-postgres-with-an-ai-interface-55583d716a34d5b8.md): Supabase · 2024-08-12 · Medium · 11 min read · PostgreSQL, WebAssembly, LLMs, AI agents, Browsers
  database.build (formerly postgres.new) runs unlimited Postgres databases entirely in the browser via PGlite, a WASM build of Postgres, paired with GPT-4o that has full autonomy over the disposable database.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
