更新时间:2026-11-23 GMT+08:00

PG_EXTENSION

PG_EXTENSION系统表存储关于所安装扩展的信息。DWS默认有三十九个扩展,即aio_scheduler、btree_gin、cudesckv、dimsearch、dist_fdw、functional_clog、functional_extension、functional_file、functional_hudi、functional_job、functional_largeobject、functional_memory、functional_other、functional_signal、functional_vacuum、functional_iceberg、gc_fdw、hdfs_fdw、hstore、log_fdw、operational_backup、operational_cgroup、operational_cudesc、operational_other、operational_replication、operational_restoration、operational_stats、operational_xlog、operational_oscache、packages、pgcrypto、pldbgapi、plpgsql、roach_api、tsdb、uuid-ossp、kvstore、pg_buffercache和plpython3u。

表1 PG_EXTENSION

名称

类型

描述

extname

name

扩展名。

extowner

oid

扩展的所有者。

extnamespace

oid

扩展导出对象的命名空间。

extrelocatable

boolean

如果扩展能够重定位到其他schema,则为true。

extversion

text

扩展的版本号。

extconfig

oid[]

扩展的配置信息。

extcondition

text[]

扩展配置信息的过滤条件。

查看当前集群所安装的扩展信息。

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
SELECT * FROM PG_EXTENSION;
         extname         | extowner | extnamespace | extrelocatable | extversion | extconfig | extcondition
-------------------------+----------+--------------+----------------+------------+-----------+--------------
 plpgsql                 |       10 |           11 | f              | 1.0        |           |
 dist_fdw                |       10 |           11 | t              | 1.0        |           |
 roach_api               |       10 |           11 | t              | 1.0        |           |
 hdfs_fdw                |       10 |           11 | t              | 1.0        |           |
 btree_gin               |       10 |           11 | t              | 1.4        |           |
 gc_fdw                  |       10 |           11 | t              | 1.0        |           |
 log_fdw                 |       10 |           11 | t              | 1.0        |           |
 hstore                  |       10 |           11 | t              | 1.1        |           |
 aio_scheduler           |       10 |           11 | t              | 1.0        |           |
 packages                |       10 |           11 | t              | 1.1        |           |
 pldbgapi                |       10 |           11 | t              | 1.0        |           |
 tsdb                    |       10 |           11 | t              | 1.0        |           |
 dimsearch               |       10 |           11 | t              | 1.0        |           |
 uuid-ossp               |       10 |           11 | t              | 1.0        |           |
 pgcrypto                |       10 |           11 | t              | 1.0        |           |
 operational_xlog        |       10 |           11 | t              | 1.0        |           |
 operational_cgroup      |       10 |           11 | t              | 1.0        |           |
 operational_backup      |       10 |           11 | t              | 1.0        |           |
 operational_cudesc      |       10 |           11 | t              | 1.0        |           |
 operational_replication |       10 |           11 | t              | 1.0        |           |
 operational_restoration |       10 |           11 | t              | 1.0        |           |
 operational_stats       |       10 |           11 | t              | 1.0        |           |
 operational_other       |       10 |           11 | t              | 1.0        |           |
 operational_oscache     |       10 |           11 | t              | 1.0        |           |
 functional_clog         |       10 |           11 | t              | 1.0        |           |
 functional_file         |       10 |           11 | t              | 1.0        |           |
 functional_hudi         |       10 |           11 | t              | 1.0        |           |
 functional_extension    |       10 |           11 | t              | 1.0        |           |
 functional_job          |       10 |           11 | t              | 1.0        |           |
 functional_largeobject  |       10 |           11 | t              | 1.0        |           |
 functional_signal       |       10 |           11 | t              | 1.0        |           |
 functional_vacuum       |       10 |           11 | t              | 1.0        |           |
 functional_memory       |       10 |           11 | t              | 1.0        |           |
 functional_iceberg      |       10 |           11 | t              | 1.0        |           |
 functional_other        |       10 |           11 | t              | 1.0        |           |
 cudesckv                |       10 |           11 | t              | 1.0        |           |
 kvstore                 |       10 |           11 | t              | 1.0        |           |
 pg_buffercache          |       10 |           11 | t              | 1.0        |           |
 plpython3u              |       10 |           11 | f              | 1.0        |           |
(39 rows)