1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>53.11. pg_ident_file_mappings</title><link rel="stylesheet" type="text/css" href="stylesheet.css" /><link rev="made" href="pgsql-docs@lists.postgresql.org" /><meta name="generator" content="DocBook XSL Stylesheets Vsnapshot" /><link rel="prev" href="view-pg-hba-file-rules.html" title="53.10. pg_hba_file_rules" /><link rel="next" href="view-pg-indexes.html" title="53.12. pg_indexes" /></head><body id="docContent" class="container-fluid col-10"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="5" align="center">53.11. <code class="structname">pg_ident_file_mappings</code></th></tr><tr><td width="10%" align="left"><a accesskey="p" href="view-pg-hba-file-rules.html" title="53.10. pg_hba_file_rules">Prev</a> </td><td width="10%" align="left"><a accesskey="u" href="views.html" title="Chapter 53. System Views">Up</a></td><th width="60%" align="center">Chapter 53. System Views</th><td width="10%" align="right"><a accesskey="h" href="index.html" title="PostgreSQL 18.0 Documentation">Home</a></td><td width="10%" align="right"> <a accesskey="n" href="view-pg-indexes.html" title="53.12. pg_indexes">Next</a></td></tr></table><hr /></div><div class="sect1" id="VIEW-PG-IDENT-FILE-MAPPINGS"><div class="titlepage"><div><div><h2 class="title" style="clear: both">53.11. <code class="structname">pg_ident_file_mappings</code> <a href="#VIEW-PG-IDENT-FILE-MAPPINGS" class="id_link">#</a></h2></div></div></div><a id="id-1.10.5.15.2" class="indexterm"></a><p>
3 The view <code class="structname">pg_ident_file_mappings</code> provides a summary
4 of the contents of the client user name mapping configuration file,
5 <a class="link" href="auth-username-maps.html" title="20.2. User Name Maps"><code class="filename">pg_ident.conf</code></a>.
6 A row appears in this view for each non-empty, non-comment line in the file,
7 with annotations indicating whether the map could be applied successfully.
9 This view can be helpful for checking whether planned changes in the
10 authentication configuration file will work, or for diagnosing a previous
11 failure. Note that this view reports on the <span class="emphasis"><em>current</em></span>
12 contents of the file, not on what was last loaded by the server.
14 By default, the <code class="structname">pg_ident_file_mappings</code> view can be
15 read only by superusers.
16 </p><div class="table" id="id-1.10.5.15.6"><p class="title"><strong>Table 53.11. <code class="structname">pg_ident_file_mappings</code> Columns</strong></p><div class="table-contents"><table class="table" summary="pg_ident_file_mappings Columns" border="1"><colgroup><col /></colgroup><thead><tr><th class="catalog_table_entry"><p class="column_definition">
21 </p></th></tr></thead><tbody><tr><td class="catalog_table_entry"><p class="column_definition">
22 <code class="structfield">map_number</code> <code class="type">int4</code>
25 Number of this map, in priority order, if valid, otherwise
26 <code class="literal">NULL</code>
27 </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
28 <code class="structfield">file_name</code> <code class="type">text</code>
31 Name of the file containing this map
32 </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
33 <code class="structfield">line_number</code> <code class="type">int4</code>
36 Line number of this map in <code class="literal">file_name</code>
37 </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
38 <code class="structfield">map_name</code> <code class="type">text</code>
42 </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
43 <code class="structfield">sys_name</code> <code class="type">text</code>
46 Detected user name of the client
47 </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
48 <code class="structfield">pg_username</code> <code class="type">text</code>
51 Requested PostgreSQL user name
52 </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
53 <code class="structfield">error</code> <code class="type">text</code>
56 If not <code class="literal">NULL</code>, an error message indicating why this
57 line could not be processed
58 </p></td></tr></tbody></table></div></div><br class="table-break" /><p>
59 Usually, a row reflecting an incorrect entry will have values for only
60 the <code class="structfield">line_number</code> and <code class="structfield">error</code> fields.
62 See <a class="xref" href="client-authentication.html" title="Chapter 20. Client Authentication">Chapter 20</a> for more information about
63 client authentication configuration.
64 </p></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="view-pg-hba-file-rules.html" title="53.10. pg_hba_file_rules">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="views.html" title="Chapter 53. System Views">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="view-pg-indexes.html" title="53.12. pg_indexes">Next</a></td></tr><tr><td width="40%" align="left" valign="top">53.10. <code class="structname">pg_hba_file_rules</code> </td><td width="20%" align="center"><a accesskey="h" href="index.html" title="PostgreSQL 18.0 Documentation">Home</a></td><td width="40%" align="right" valign="top"> 53.12. <code class="structname">pg_indexes</code></td></tr></table></div></body></html>