合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
| 命令 | 详解 | | --- | --- | | CREATE EXTENSION IF NOT EXISTS 扩展名; | 安装扩展 | |DROP EXTENSION 扩展名| 删除扩展| |select * from pg_extension| 查看已安装的扩展| |select * from pg_available_extensions| 查看可安装的扩展| |select * from pg_available_extension_versions| 查看可安装的指定版本的扩展| |\dx[+]| 命令行下查看已安装扩展 | ``` postgres=# \dx List of installed extensions Name | Version | Schema | Description -----------------+---------+------------+------------------------------------------------------------------- first_last_agg | 0.1.4 | public | first() and last() aggregate functions pg_freespacemap | 1.2 | public | examine the free space map (FSM) pg_trgm | 1.5 | public | text similarity measurement and index searching based on trigrams pg_visibility | 1.2 | public | examine the visibility map (VM) and page-level visibility info plpgsql | 1.0 | pg_catalog | PL/pgSQL procedural language (5 rows) postgres=# select * from pg_extension; oid | extname | extowner | extnamespace | extrelocatable | extversion | extconfig | extcondition -------+-----------------+----------+--------------+----------------+------------+-----------+-------------- 13566 | plpgsql | 10 | 11 | f | 1.0 | | 16439 | first_last_agg | 10 | 2200 | t | 0.1.4 | | 16446 | pg_trgm | 10 | 2200 | t | 1.5 | | 16540 | pg_freespacemap | 10 | 2200 | t | 1.2 | | 16555 | pg_visibility | 10 | 2200 | t | 1.2 | | (5 rows) ```