select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

SYSTEM CATALOGS / SYSTEM VIEWS

pg_user_mappings

Read PG 18 manual ↗

The view pg_user_mappings provides access to information about user mappings.

Kind
System views
Columns in this snapshot
6
Definition source
English manual

Columns 6

ColumnTypeDescription / reference
umidoidOID of the user mapping
pg_user_mapping.oid
srvidoidThe OID of the foreign server that contains this mapping
pg_foreign_server.oid
srvnamenameName of the foreign server
pg_foreign_server.srvname
umuseroidOID of the local role being mapped, or zero if the user mapping is public
pg_authid.oid
usenamenameName of the local user to be mapped
umoptionstext[]User mapping specific options, as “keyword=value” strings
Column history across versions
Version history 3
  1. PG 13 → 14changed
  2. PG 9.6 → 10changed
  3. PG 9.1 → 9.2changed

Definition snapshot: english-manuals:55a3590a254e1bfd12af4110116… · English manual source