Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using psql how do I list extensions installed in a database?

How do I list all extensions that are already installed in a database or schema from psql?

See also

  • Finding a list of available extensions that PostgreSQL ships with
like image 823
ARV Avatar asked Feb 15 '14 16:02

ARV


People also ask

How do I see all Postgres extensions?

Get a list of all the extensions installed on a database by using the \dx command. For example, the output for \dx when run on the Databases for PostgreSQL default database shows the only installed extension.

Where are Postgres extensions stored?

By default, the script file(s) are also placed in the SHAREDIR/extension directory; but the control file can specify a different directory for the script file(s). The file format for an extension control file is the same as for the postgresql.

What is the extension of a Postgres database?

. sql is the usual extension.

What is the psql command to show all the relations in a database?

Type the command \l in the psql command-line interface to display a list of all the databases on your Postgres server.


1 Answers

In psql that would be

\dx 

See the manual of psql for details.

Doing it in plain SQL it would be a select on pg_extension:

SELECT *  FROM pg_extension; 
like image 119
a_horse_with_no_name Avatar answered Dec 14 '22 15:12

a_horse_with_no_name