postgresql_16:7.1.68.3 Notes
PostgreSQL 16 > Reference > SQL Commands > CREATE LANGUAGE > Notes
Use DROP LANGUAGE (see postgresql_16:7.1.115) to drop procedural languages.
The system catalog pg_language (see (see postgresql_16:8.2.29)) records information about the currently installed languages. Also, the psql command \dL lists the installed languages.
To create functions in a procedural language, a user must have the USAGE privilege for the language. By default, USAGE is granted to PUBLIC (i.e., everyone) for trusted languages. This can be revoked if desired.
Procedural languages are local to individual databases. However, a language can be installed into the template1 database, which will cause it to be available automatically in all subsequently-created databases.