{"Entry":{"collection":"catalog","key":"pg_user_mappings","name":"pg_user_mappings","aliases":[],"metadata":{"changed_in":[],"changes":[{"added":[],"attributes":[],"description_changed":false,"descriptions":[],"from":"8.3","order":false,"removed":[],"status":"added","to":"8.4","types":[]},{"added":[],"attributes":[],"description_changed":false,"descriptions":[{"from":"User mapping specific options, as \"keyword=value\" strings, if the current user is the owner of the foreign server, else null.","name":"umoptions","to":"User mapping specific options, as \"keyword=value\" strings, if the current user is the owner of the foreign server, else null"}],"from":"8.4","listing":[],"order":false,"removed":[],"status":"reworded","to":"9.0","types":[],"unlisted":[]},{"added":[],"attributes":[],"description_changed":false,"descriptions":[{"from":"User mapping specific options, as \"keyword=value\" strings, if the current user is the owner of the foreign server, else null","name":"umoptions","to":"User mapping specific options, as \"keyword=value\" strings"}],"from":"9.1","listing":[],"order":false,"removed":[],"status":"reworded","to":"9.2","types":[],"unlisted":[]},{"added":[],"attributes":[],"description_changed":false,"descriptions":[{"from":"User mapping specific options, as \"keyword=value\" strings","name":"umoptions","to":"User mapping specific options, as “keyword=value” strings"}],"from":"9.6","listing":[],"order":false,"removed":[],"status":"reworded","to":"10","types":[],"unlisted":[]},{"added":[],"attributes":[],"description_changed":false,"descriptions":[{"from":"OID of the local role being mapped, 0 if the user mapping is public","name":"umuser","to":"OID of the local role being mapped, or zero if the user mapping is public"}],"from":"13","listing":[],"order":false,"removed":[],"status":"reworded","to":"14","types":[],"unlisted":[]}],"column_count":6,"content_hash":"dc040a3c29cc742dfa60d9508ec0aae7ffeaa3dd8aa0d2b33649420b113f8054","first_version":"8.4","imported_at":"2026-09-30T00:40:56.430153+08:00","kind":"view","last_version":"20","name":"pg_user_mappings","position":152,"present_in":["8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"relation_oid":null,"relkind":"v","shared":false,"source_rev":"english-manuals:930730db370c8890c02b90b4e69aee32122e2667ce0d9548c3ec6934007a442a","summary":"The view pg_user_mappings provides access to information about user mappings.","summary_zh":""}},"Definition":{"Collection":"catalog","Key":"pg_user_mappings","SourceDatabase":"center","Version":"18","SourceTable":"catalog","SourceKey":"pg_user_mappings","SourceRevision":"english-manuals:930730db370c8890c02b90b4e69aee32122e2667ce0d9548c3ec6934007a442a","Facts":{"columns":[{"array_dimensions":0,"attnum":1,"description":"OID of the user mapping","description_zh":"","documented":true,"documented_name":"umid","hidden":false,"name":"umid","not_null":false,"references":"pg_user_mapping.oid","type":"oid","type_modifier":-1,"type_oid":26},{"array_dimensions":0,"attnum":2,"description":"The OID of the foreign server that contains this mapping","description_zh":"","documented":true,"documented_name":"srvid","hidden":false,"name":"srvid","not_null":false,"references":"pg_foreign_server.oid","type":"oid","type_modifier":-1,"type_oid":26},{"array_dimensions":0,"attnum":3,"description":"Name of the foreign server","description_zh":"","documented":true,"documented_name":"srvname","hidden":false,"name":"srvname","not_null":false,"references":"pg_foreign_server.srvname","type":"name","type_modifier":-1,"type_oid":19},{"array_dimensions":0,"attnum":4,"description":"OID of the local role being mapped, or zero if the user mapping is public","description_zh":"","documented":true,"documented_name":"umuser","hidden":false,"name":"umuser","not_null":false,"references":"pg_authid.oid","type":"oid","type_modifier":-1,"type_oid":26},{"array_dimensions":0,"attnum":5,"description":"Name of the local user to be mapped","description_zh":"","documented":true,"documented_name":"usename","hidden":false,"name":"usename","not_null":false,"references":"","type":"name","type_modifier":-1,"type_oid":19},{"array_dimensions":0,"attnum":6,"description":"User mapping specific options, as “keyword=value” strings","description_zh":"","documented":true,"documented_name":"umoptions","hidden":false,"name":"umoptions","not_null":false,"references":"","type":"text[]","type_modifier":-1,"type_oid":1009}],"description":"The view pg_user_mappings provides access to information about user mappings. This is essentially a publicly readable view of pg_user_mapping that leaves out the options field if the user has no rights to use it.","description_zh":"","doc":{"anchor":"id-1.10.5.40.4","file":"view-pg-user-mappings.html","lang":"en","sha256":"7c8ff2e29f3e04f4593c701e2ea2af67b21fba148dcadb8f89180854b98e05ca","slug":"18"},"kind":"view","lang":"en","measured_attributes":true,"metadata_release":"18.6","runtime_columns":["umid","srvid","srvname","umuser","usename","umoptions"],"runtime_verified":false,"source":"english-manual"},"ManualEvidence":{"doc":{"anchor":"id-1.10.5.40.4","file":"view-pg-user-mappings.html","lang":"en","sha256":"7c8ff2e29f3e04f4593c701e2ea2af67b21fba148dcadb8f89180854b98e05ca","slug":"18"}},"MeasuredEvidence":{"measured_attributes":true,"metadata_release":"18.6","runtime_columns":["umid","srvid","srvname","umuser","usename","umoptions"],"runtime_verified":false}},"Text":{"Collection":"catalog","Key":"pg_user_mappings","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"pg_user_mappings","Summary":"视图pg_user_mappings提供用户映射的信息。它本质上是 pg_user_mapping 的公开可读视图，但如果用户没有使用该用户映射的权限，则会省略选项字段。","BodyHTML":"\u003cp\u003e视图pg_user_mappings提供用户映射的信息。它本质上是 pg_user_mapping 的公开可读视图，但如果用户没有使用该用户映射的权限，则会省略选项字段。\u003c/p\u003e","SourceRevision":"2026-09-27@419045e","ContentHash":"6584c4c19216e0f8e1c5efe757722c0f3b652da76b8e9915a80e80f4c613d95c","Payload":{"columns":[{"description_zh":"用户映射的OID","name":"umid","type":"oid","zh_from":"doc"},{"description_zh":"包含该映射的外部服务器的OID","name":"srvid","type":"oid","zh_from":"doc"},{"description_zh":"外部服务器名","name":"srvname","type":"name","zh_from":"doc"},{"description_zh":"将要被映射的本地角色的OID，如果用户映射是公共的则为零","name":"umuser","type":"oid","zh_from":"doc"},{"description_zh":"将被映射的本地用户名","name":"usename","type":"name","zh_from":"doc"},{"description_zh":"用户映射特定的选项，以“keyword=value”字符串形式","name":"umoptions","type":"text[]","zh_from":"doc"}],"description_zh":"视图pg_user_mappings提供用户映射的信息。它本质上是 pg_user_mapping 的公开可读视图，但如果用户没有使用该用户映射的权限，则会省略选项字段。","zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":null,"Spellings":null,"SQLState":null,"Evidence":null}
