Uninstalling Trusted Language Extensions for PostgreSQL
If you no longer want to create your own TLE extensions using TLE, you
can drop the pg_tle extension and remove all artifacts. This action
includes dropping any TLE extensions in the database and dropping the pgtle
schema.
To drop the pg_tle extension and its schema from a database
Use
psqlor another client tool to connect to the RDS for PostgreSQL DB instance.psql --host=.111122223333.aws-region.rds.amazonaws.com --port=5432 --username=postgres --password --dbname=dbnameDrop the
pg_tleextension from the database. If the database has your own TLE extensions still running in the database, you need to also drop those extensions. To do so, you can use theCASCADEkeyword, as shown in the following.DROP EXTENSION pg_tle CASCADE;If the
pg_tleextension isn't still active in the database, you don't need to use theCASCADEkeyword.Drop the
pgtleschema. This action removes all the management functions from the database.DROP SCHEMA pgtle CASCADE;The command returns the following when the process completes.
DROP SCHEMAThe
pg_tleextension, its schema and functions, and all artifacts are removed. To create new extensions using TLE, go through the setup process again. For more information, see Setting up Trusted Language Extensions in your RDS for PostgreSQL DB instance.