pg_stat_gssapi
是一个 统计视图,显示有关GSSAPI身份验证使用情况的信息。
pg_stat_gssapi
添加于 PostgreSQL 12。
按PostgreSQL版本定义
pg_stat_gssapi (PostgreSQL 18)
View "pg_catalog.pg_stat_gssapi" Column | Type | Collation | Nullable | Default -----------------------+---------+-----------+----------+--------- pid | integer | | | gss_authenticated | boolean | | | principal | text | | | encrypted | boolean | | | credentials_delegated | boolean | | |
文档: pg_stat_gssapi
pg_stat_gssapi (PostgreSQL 17)
View "pg_catalog.pg_stat_gssapi" Column | Type | Collation | Nullable | Default -----------------------+---------+-----------+----------+--------- pid | integer | | | gss_authenticated | boolean | | | principal | text | | | encrypted | boolean | | | credentials_delegated | boolean | | |
文档: pg_stat_gssapi
pg_stat_gssapi (PostgreSQL 16)
View "pg_catalog.pg_stat_gssapi" Column | Type | Collation | Nullable | Default -----------------------+---------+-----------+----------+--------- pid | integer | | | gss_authenticated | boolean | | | principal | text | | | encrypted | boolean | | | credentials_delegated | boolean | | |
文档: pg_stat_gssapi
pg_stat_gssapi (PostgreSQL 15)
View "pg_catalog.pg_stat_gssapi" Column | Type | Collation | Nullable | Default -------------------+---------+-----------+----------+--------- pid | integer | | | gss_authenticated | boolean | | | principal | text | | | encrypted | boolean | | |
文档: pg_stat_gssapi
pg_stat_gssapi (PostgreSQL 14)
View "pg_catalog.pg_stat_gssapi" Column | Type | Collation | Nullable | Default -------------------+---------+-----------+----------+--------- pid | integer | | | gss_authenticated | boolean | | | principal | text | | | encrypted | boolean | | |
文档: pg_stat_gssapi
pg_stat_gssapi (PostgreSQL 13)
View "pg_catalog.pg_stat_gssapi" Column | Type | Collation | Nullable | Default -------------------+---------+-----------+----------+--------- pid | integer | | | gss_authenticated | boolean | | | principal | text | | | encrypted | boolean | | |
文档: pg_stat_gssapi
pg_stat_gssapi (PostgreSQL 12)
View "pg_catalog.pg_stat_gssapi" Column | Type | Collation | Nullable | Default -------------------+---------+-----------+----------+--------- pid | integer | | | gss_authenticated | boolean | | | principal | text | | | encrypted | boolean | | |
文档: pg_stat_gssapi
更改历史记录
- PostgreSQL 16
- 添加列
credentials_delegated
(提交 6633cfb2)
- 添加列
- PostgreSQL 13
- 仅显示具有连接的进程,即不包括不接收网络连接的各种辅助进程 (提交 5c46e7d8)
- PostgreSQL 12
- 添加 (提交 b0b39f72)
示例
显示当前(未加密)连接的GSSAPI身份验证信息(或其不存在)。
postgres=# SELECT * FROM pg_stat_gssapi WHERE pid = pg_backend_pid(); pid | gss_authenticated | principal | encrypted ------+-------------------+-----------+----------- 5991 | f | | f (1 row)
参考文献
- PostgreSQL文档: pg_stat_gssapi