]> begriffs open source - ai-pg/blob - full-docs/src/sgml/html/view-pg-user-mappings.html
PG 18 docs from https://ftp.postgresql.org/pub/source/v18.0/postgresql-18.0-docs...
[ai-pg] / full-docs / src / sgml / html / view-pg-user-mappings.html
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.36. pg_user_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-user.html" title="53.35. pg_user" /><link rel="next" href="view-pg-views.html" title="53.37. pg_views" /></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.36. <code class="structname">pg_user_mappings</code></th></tr><tr><td width="10%" align="left"><a accesskey="p" href="view-pg-user.html" title="53.35. pg_user">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-views.html" title="53.37. pg_views">Next</a></td></tr></table><hr /></div><div class="sect1" id="VIEW-PG-USER-MAPPINGS"><div class="titlepage"><div><div><h2 class="title" style="clear: both">53.36. <code class="structname">pg_user_mappings</code> <a href="#VIEW-PG-USER-MAPPINGS" class="id_link">#</a></h2></div></div></div><a id="id-1.10.5.40.2" class="indexterm"></a><p>
3    The view <code class="structname">pg_user_mappings</code> provides access
4    to information about user mappings.  This is essentially a publicly
5    readable view of
6    <a class="link" href="catalog-pg-user-mapping.html" title="52.65. pg_user_mapping"><code class="structname">pg_user_mapping</code></a>
7    that leaves out the options field if the user has no rights to use
8    it.
9   </p><div class="table" id="id-1.10.5.40.4"><p class="title"><strong>Table 53.36. <code class="structname">pg_user_mappings</code> Columns</strong></p><div class="table-contents"><table class="table" summary="pg_user_mappings Columns" border="1"><colgroup><col /></colgroup><thead><tr><th class="catalog_table_entry"><p class="column_definition">
10        Column Type
11       </p>
12       <p>
13        Description
14       </p></th></tr></thead><tbody><tr><td class="catalog_table_entry"><p class="column_definition">
15        <code class="structfield">umid</code> <code class="type">oid</code>
16        (references <a class="link" href="catalog-pg-user-mapping.html" title="52.65. pg_user_mapping"><code class="structname">pg_user_mapping</code></a>.<code class="structfield">oid</code>)
17       </p>
18       <p>
19        OID of the user mapping
20       </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
21        <code class="structfield">srvid</code> <code class="type">oid</code>
22        (references <a class="link" href="catalog-pg-foreign-server.html" title="52.24. pg_foreign_server"><code class="structname">pg_foreign_server</code></a>.<code class="structfield">oid</code>)
23       </p>
24       <p>
25        The OID of the foreign server that contains this mapping
26       </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
27        <code class="structfield">srvname</code> <code class="type">name</code>
28        (references <a class="link" href="catalog-pg-foreign-server.html" title="52.24. pg_foreign_server"><code class="structname">pg_foreign_server</code></a>.<code class="structfield">srvname</code>)
29       </p>
30       <p>
31        Name of the foreign server
32       </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
33        <code class="structfield">umuser</code> <code class="type">oid</code>
34        (references <a class="link" href="catalog-pg-authid.html" title="52.8. pg_authid"><code class="structname">pg_authid</code></a>.<code class="structfield">oid</code>)
35       </p>
36       <p>
37        OID of the local role being mapped, or zero if the user mapping is public
38       </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
39        <code class="structfield">usename</code> <code class="type">name</code>
40       </p>
41       <p>
42        Name of the local user to be mapped
43       </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
44        <code class="structfield">umoptions</code> <code class="type">text[]</code>
45       </p>
46       <p>
47        User mapping specific options, as <span class="quote">“<span class="quote">keyword=value</span>”</span> strings
48       </p></td></tr></tbody></table></div></div><br class="table-break" /><p>
49    To protect password information stored as a user mapping option,
50    the <code class="structfield">umoptions</code> column will read as null
51    unless one of the following applies:
52    </p><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"><p>
53       current user is the user being mapped, and owns the server or
54       holds <code class="literal">USAGE</code> privilege on it
55      </p></li><li class="listitem"><p>
56       current user is the server owner and mapping is for <code class="literal">PUBLIC</code>
57      </p></li><li class="listitem"><p>
58       current user is a superuser
59      </p></li></ul></div><p>
60   </p></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="view-pg-user.html" title="53.35. pg_user">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-views.html" title="53.37. pg_views">Next</a></td></tr><tr><td width="40%" align="left" valign="top">53.35. <code class="structname">pg_user</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.37. <code class="structname">pg_views</code></td></tr></table></div></body></html>