D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
postgresql11
/
usr
/
share
/
doc
/
alt-postgresql11-9.2.24
/
html
/
Filename :
view-pg-user-mappings.html
back
Copy
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >pg_user_mappings</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REV="MADE" HREF="mailto:pgsql-docs@postgresql.org"><LINK REL="HOME" TITLE="PostgreSQL 9.2.24 Documentation" HREF="index.html"><LINK REL="UP" TITLE="System Catalogs" HREF="catalogs.html"><LINK REL="PREVIOUS" TITLE="pg_user" HREF="view-pg-user.html"><LINK REL="NEXT" TITLE="pg_views" HREF="view-pg-views.html"><LINK REL="STYLESHEET" TYPE="text/css" HREF="stylesheet.css"><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"><META NAME="creation" CONTENT="2017-11-06T22:43:11"></HEAD ><BODY CLASS="SECT1" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="5" ALIGN="center" VALIGN="bottom" ><A HREF="index.html" >PostgreSQL 9.2.24 Documentation</A ></TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="top" ><A TITLE="pg_user" HREF="view-pg-user.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="10%" ALIGN="left" VALIGN="top" ><A HREF="catalogs.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="60%" ALIGN="center" VALIGN="bottom" >Chapter 45. System Catalogs</TD ><TD WIDTH="20%" ALIGN="right" VALIGN="top" ><A TITLE="pg_views" HREF="view-pg-views.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="SECT1" ><H1 CLASS="SECT1" ><A NAME="VIEW-PG-USER-MAPPINGS" >45.71. <TT CLASS="STRUCTNAME" >pg_user_mappings</TT ></A ></H1 ><P > The view <TT CLASS="STRUCTNAME" >pg_user_mappings</TT > provides access to information about user mappings. This is essentially a publicly readable view of <A HREF="catalog-pg-user-mapping.html" ><TT CLASS="STRUCTNAME" >pg_user_mapping</TT ></A > that leaves out the options field if the user has no rights to use it. </P ><DIV CLASS="TABLE" ><A NAME="AEN95580" ></A ><P ><B >Table 45-72. <TT CLASS="STRUCTNAME" >pg_user_mappings</TT > Columns</B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><COL><COL><THEAD ><TR ><TH >Name</TH ><TH >Type</TH ><TH >References</TH ><TH >Description</TH ></TR ></THEAD ><TBODY ><TR ><TD ><TT CLASS="STRUCTFIELD" >umid</TT ></TD ><TD ><TT CLASS="TYPE" >oid</TT ></TD ><TD ><TT CLASS="LITERAL" ><A HREF="catalog-pg-user-mapping.html" ><TT CLASS="STRUCTNAME" >pg_user_mapping</TT ></A >.oid</TT ></TD ><TD >OID of the user mapping</TD ></TR ><TR ><TD ><TT CLASS="STRUCTFIELD" >srvid</TT ></TD ><TD ><TT CLASS="TYPE" >oid</TT ></TD ><TD ><TT CLASS="LITERAL" ><A HREF="catalog-pg-foreign-server.html" ><TT CLASS="STRUCTNAME" >pg_foreign_server</TT ></A >.oid</TT ></TD ><TD > The OID of the foreign server that contains this mapping </TD ></TR ><TR ><TD ><TT CLASS="STRUCTFIELD" >srvname</TT ></TD ><TD ><TT CLASS="TYPE" >name</TT ></TD ><TD ><TT CLASS="LITERAL" ><A HREF="catalog-pg-foreign-server.html" ><TT CLASS="STRUCTNAME" >pg_foreign_server</TT ></A >.srvname</TT ></TD ><TD > Name of the foreign server </TD ></TR ><TR ><TD ><TT CLASS="STRUCTFIELD" >umuser</TT ></TD ><TD ><TT CLASS="TYPE" >oid</TT ></TD ><TD ><TT CLASS="LITERAL" ><A HREF="catalog-pg-authid.html" ><TT CLASS="STRUCTNAME" >pg_authid</TT ></A >.oid</TT ></TD ><TD >OID of the local role being mapped, 0 if the user mapping is public</TD ></TR ><TR ><TD ><TT CLASS="STRUCTFIELD" >usename</TT ></TD ><TD ><TT CLASS="TYPE" >name</TT ></TD ><TD > </TD ><TD >Name of the local user to be mapped</TD ></TR ><TR ><TD ><TT CLASS="STRUCTFIELD" >umoptions</TT ></TD ><TD ><TT CLASS="TYPE" >text[]</TT ></TD ><TD > </TD ><TD > User mapping specific options, as <SPAN CLASS="QUOTE" >"keyword=value"</SPAN > strings </TD ></TR ></TBODY ></TABLE ></DIV ><P > To protect password information stored as a user mapping option, the <TT CLASS="STRUCTFIELD" >umoptions</TT > column will read as null unless one of the following applies: <P ></P ></P><UL ><LI ><P > current user is the user being mapped, and owns the server or holds <TT CLASS="LITERAL" >USAGE</TT > privilege on it </P ></LI ><LI ><P > current user is the server owner and mapping is for <TT CLASS="LITERAL" >PUBLIC</TT > </P ></LI ><LI ><P > current user is a superuser </P ></LI ></UL ><P> </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="view-pg-user.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="view-pg-views.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><TT CLASS="STRUCTNAME" >pg_user</TT ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="catalogs.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><TT CLASS="STRUCTNAME" >pg_views</TT ></TD ></TR ></TABLE ></DIV ></BODY ></HTML >