↑↓ select↵ open⌫ change scopeOpen full search

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

Wiki / System Catalogs

pg_user_mapping

The catalog pg_user_mapping stores the mappings from local user to remote. Access to this catalog is restricted from normal users, use the view pg_user_mappings instead.

English manual coverage begins with PostgreSQL 7.4. Source history and runtime observations have their own recorded version boundaries.

Reading PG 18·Select a recorded version

kind
catalog
lang
en
measured attributes
true
metadata release
18.6
runtime columns
oid, umuser, umserver, umoptions
runtime verified
false
source
english-manual

Definition PG 18

The catalog pg_user_mapping stores the mappings from local user to remote. Access to this catalog is restricted from normal users, use the view pg_user_mappings instead.

Catalog columns

ColumnTypeNullabilityDescription
oidoidNot nullRow identifier
umuseroidNot nullOID of the local role being mapped, or zero if the user mapping is public
umserveroidNot nullThe OID of the foreign server that contains this mapping
umoptionstext[]NullableUser mapping specific options, as “keyword=value” strings

Compare versions

Source references

Full definition and evidence JSON

Definition sources

center · PostgreSQL 18 · catalog-bilingual-repair:30266054030f0b15264cd2635cf5d4e19ccc5b7cdfa6c551415c3b0cb7cce00e

Text language: en · catalog-bilingual-repair:30266054030f0b15264cd2635cf5d4e19ccc5b7cdfa6c551415c3b0cb7cce00e