1DROP USER MAPPING(7) PostgreSQL 14.3 Documentation DROP USER MAPPING(7)
2
3
4
6 DROP_USER_MAPPING - remove a user mapping for a foreign server
7
9 DROP USER MAPPING [ IF EXISTS ] FOR { user_name | USER | CURRENT_ROLE | CURRENT_USER | PUBLIC } SERVER server_name
10
12 DROP USER MAPPING removes an existing user mapping from foreign server.
13
14 The owner of a foreign server can drop user mappings for that server
15 for any user. Also, a user can drop a user mapping for their own user
16 name if USAGE privilege on the server has been granted to the user.
17
19 IF EXISTS
20 Do not throw an error if the user mapping does not exist. A notice
21 is issued in this case.
22
23 user_name
24 User name of the mapping. CURRENT_ROLE, CURRENT_USER, and USER
25 match the name of the current user. PUBLIC is used to match all
26 present and future user names in the system.
27
28 server_name
29 Server name of the user mapping.
30
32 Drop a user mapping bob, server foo if it exists:
33
34 DROP USER MAPPING IF EXISTS FOR bob SERVER foo;
35
37 DROP USER MAPPING conforms to ISO/IEC 9075-9 (SQL/MED). The IF EXISTS
38 clause is a PostgreSQL extension.
39
41 CREATE USER MAPPING (CREATE_USER_MAPPING(7)), ALTER USER MAPPING
42 (ALTER_USER_MAPPING(7))
43
44
45
46PostgreSQL 14.3 2022 DROP USER MAPPING(7)