跳转到主要内容
← 目录图谱 / pg_ident_file_mappings

SYSTEM VIEW · 系统视图

pg_ident_file_mappings

The view pg_ident_file_mappings provides a summary of the contents of the client user name mapping configuration file, pg_ident.conf. A row appears in this view for each non-empty, non-comment line in the file, with annotations indicating whether the map could be applied successfully. This view can be helpful for checking whether planned changes in the authentication configuration file will work, or for diagnosing a previous failure. Note that this view reports on the current contents of the file, not on what was last loaded by the server. By default, the pg_ident_file_mappings view can be read only by superusers.

首次收录 PG 15最近收录 PG 19当前字段 7

已与 PostgreSQL 18.6 实例逐字段核对 · 原始实测记录 ↗

字段结构 PostgreSQL 18

pg_ident_file_mappings
字段 / COLUMN类型 / TYPE说明 / DESCRIPTION
map_number integer文档原写法:int4 Number of this map, in priority order, if valid, otherwise NULL
file_name text Name of the file containing this map
line_number integer文档原写法:int4 Line number of this map in file_name
map_name text Name of the map
sys_name text Detected user name of the client
pg_username text Requested PostgreSQL user name
error text If not NULL, an error message indicating why this line could not be processed

标记“隐式列”的字段不包含在 SELECT * 中;部分早期统计视图由同版本源码补全,额外来源会显示在字段说明中。

字段演化矩阵

悬停查看字段类型
存在新增 / 类型或属性变化移除
字段 / COLUMN9.09.19.29.39.49.59.610111213141516171819
line_number
map_name
sys_name
pg_username
error
map_number
file_name

9.0 是收录基线;基线中已存在的字段不标记为新增。矩阵按字段名称对齐,重命名显示为旧字段移除与新字段新增。

演化时间线

相邻大版本的变化

PostgreSQL 16 ← 15

+ map_number+ file_name1 处字段说明更新

PostgreSQL 15 ← 14新增目录

+ line_number+ map_name+ sys_name+ pg_username+ error

比较任意两个版本

选择两个版本,查看字段的新增、移除与类型变化。交互比较需要 JavaScript;演化时间线可直接阅读。