↑↓ 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 the PG 18 manual

The view pg_user_mappings provides access to information about user mappings.

Reading PG 18current·documented in 19 of 24 versions, 8.4 to 20

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

Columns 6

As listed in the PostgreSQL 18 manual.

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 5
  1. 13 → 14 reworded
  2. 9.6 → 10 reworded
  3. 9.1 → 9.2 reworded
  4. 8.4 → 9.0 reworded
  5. 8.3 → 8.4 added

Definition snapshot: english-manuals:930730db370c8890c02b90b4e69… · English manual source