Overview of Trusted Language Extensions for PostgreSQL
Trusted Language Extensions for PostgreSQL is a PostgreSQL extension that you install in your Aurora PostgreSQL DB cluster in the same way that you set up other PostgreSQL
extensions. In the following image of an example database in the pgAdmin client tool,
you can view some of the components that comprise the pg_tle
extension.
You can see the following details.
-
The Trusted Language Extensions (TLE) for PostgreSQL development kit is packaged as the
pg_tle
extension. As such,pg_tle
is added to the available extensions for the database in which it's installed. TLE has its own schema,
pgtle
. This schema contains helper functions (3) for installing and managing the extensions that you create.TLE provides over a dozen helper functions for installing, registering, and managing your extensions. To learn more about these functions, see Function reference for Trusted Language Extensions for PostgreSQL.
Other components of the pg_tle
extension include the following:
The
pgtle_admin
role – Thepgtle_admin
role is created when thepg_tle
extension is installed. This role is privileged and should be treated as such. We strongly recommend that you follow the principle of least privilege when granting thepgtle_admin
role to database users. In other words, grant thepgtle_admin
role only to database users that are allowed to create, install, and manage new TLE extensions, such aspostgres
.The
pgtle.feature_info
table – Thepgtle.feature_info
table is a protected table that contains information about your TLEs, hooks, and the custom stored procedures and functions that they use. If you havepgtle_admin
privileges, you use the following Trusted Language Extensions functions to add and update that information in the table.