Using psql how do I list extensions installed in a

2019-01-21 04:10发布

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

See also

2条回答
Luminary・发光体
2楼-- · 2019-01-21 05:07

In psql that would be

\dx

See the manual for details: http://www.postgresql.org/docs/current/static/app-psql.html

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

SELECT * 
FROM pg_extension

http://www.postgresql.org/docs/current/static/catalog-pg-extension.html

查看更多
SAY GOODBYE
3楼-- · 2019-01-21 05:07

Additionally if you want to know which extensions are available on your server: SELECT * FROM pg_available_extensions

查看更多
登录 后发表回答