pg_stat_gssapi
是一个 统计视图,显示有关 GSSAPI 身份验证使用情况的信息。
pg_stat_gssapi
在 PostgreSQL 12 中添加。
按 PostgreSQL 版本定义
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