33.59. user_mappings

Note: The following description applies both to Postgres-XC and PostgreSQL if not described explicitly. You can read PostgreSQL as Postgres-XC except for version number, which is specific to each product.

The view user_mappings contains all user mappings defined in the current database. Only those user mappings are shown where the current user has access to the corresponding foreign server (by way of being the owner or having some privilege).

Table 33-57. user_mappings Columns

NameData TypeDescription
authorization_identifiersql_identifierName of the user being mapped, or PUBLIC if the mapping is public
foreign_server_catalogsql_identifierName of the database that the foreign server used by this mapping is defined in (always the current database)
foreign_server_namesql_identifierName of the foreign server used by this mapping