]> begriffs open source - ai-pg/blob - full-docs/txt/sql-dropusermapping.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / sql-dropusermapping.txt
1
2 DROP USER MAPPING
3
4    DROP USER MAPPING — remove a user mapping for a foreign server
5
6 Synopsis
7
8 DROP USER MAPPING [ IF EXISTS ] FOR { user_name | USER | CURRENT_ROLE | CURRENT_
9 USER | PUBLIC } SERVER server_name
10
11 Description
12
13    DROP USER MAPPING removes an existing user mapping from foreign server.
14
15    The owner of a foreign server can drop user mappings for that server
16    for any user. Also, a user can drop a user mapping for their own user
17    name if USAGE privilege on the server has been granted to the user.
18
19 Parameters
20
21    IF EXISTS
22           Do not throw an error if the user mapping does not exist. A
23           notice is issued in this case.
24
25    user_name
26           User name of the mapping. CURRENT_ROLE, CURRENT_USER, and USER
27           match the name of the current user. PUBLIC is used to match all
28           present and future user names in the system.
29
30    server_name
31           Server name of the user mapping.
32
33 Examples
34
35    Drop a user mapping bob, server foo if it exists:
36 DROP USER MAPPING IF EXISTS FOR bob SERVER foo;
37
38 Compatibility
39
40    DROP USER MAPPING conforms to ISO/IEC 9075-9 (SQL/MED). The IF EXISTS
41    clause is a PostgreSQL extension.
42
43 See Also
44
45    CREATE USER MAPPING, ALTER USER MAPPING