DROP_USER_MAPPING(7pg16)
DROP USER MAPPING π β¨
okay so bestie, this is DROP USER MAPPING β from the PostgreSQL 16.15 documentation, section 7 β and itβs literally the page about removing a user mapping for a foreign server. π«Ά No cap.
β¨ NAME β¨
DROP_USER_MAPPING β remove a user mapping for a foreign server π
πΈ SYNOPSIS πΈ
DROP USER MAPPING [ IF EXISTS ] FOR { user_name | USER | CURRENT_ROLE | CURRENT_USER | PUBLIC } SERVER server_name
π¦ DESCRIPTION π¦
DROP USER MAPPING removes an existing user mapping from a foreign server. periodt. π
The owner of a foreign server can drop user mappings for that server, for any user. Also, a user can drop a user mapping for their own user name if USAGE privilege on the server has been granted to the user. slay. β¨
π PARAMETERS π
IF EXISTSβ donβt throw an error if the user mapping doesnβt exist. In this case a notice is issued. πuser_nameβ the user name of the mapping.CURRENT_ROLE,CURRENT_USER, andUSERmatch the name of the current user.PUBLICis used to match all present and future user names in the system. πserver_nameβ the server name of the user mapping. π¦
β EXAMPLES β
Drop a user mapping bob, server foo if it exists:
DROP USER MAPPING IF EXISTS FOR bob SERVER foo;
π COMPATIBILITY π
DROP USER MAPPING conforms to ISO/IEC 9075-9 (SQL/MED). The IF EXISTS clause is a PostgreSQL extension. iykyk β¨
π SEE ALSO π
CREATE USER MAPPING(CREATE_USER_MAPPING(7)) π«ΆALTER USER MAPPING(ALTER_USER_MAPPING(7)) π
xoxo bestie, this was PostgreSQL 16.15, dated 2026 β mwah π π
π¦ where this page comes from
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms