1DROP USER MAPPING(7)             SQL Commands             DROP USER MAPPING(7)
2
3
4

NAME

6       DROP USER MAPPING - remove a user mapping for a foreign server
7
8

SYNOPSIS

10       DROP USER MAPPING [ IF EXISTS ] FOR { username | USER | CURRENT_USER | PUBLIC } SERVER servername
11
12

DESCRIPTION

14       DROP USER MAPPING removes an existing user mapping from foreign server.
15
16       The  owner  of  a foreign server can drop user mappings for that server
17       for any user. Also, a user can drop a user mapping  for  his  own  user
18       name if USAGE privilege on the server has been granted to the user.
19

PARAMETERS

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       username
26              User name of the mapping. CURRENT_USER and USER match  the  name
27              of  the  current  user.  PUBLIC is used to match all present and
28              future user names in the system.
29
30       servername
31              Server name of the user mapping.
32

EXAMPLES

34       Drop a user mapping bob, server foo if it exists:
35
36       DROP USER MAPPING IF EXISTS FOR bob SERVER foo;
37
38

COMPATIBILITY

40       DROP USER MAPPING conforms to ISO/IEC 9075-9 (SQL/MED). The  IF  EXISTS
41       clause is a PostgreSQL extension.
42

SEE ALSO

44       CREATE   USER  MAPPING  [create_user_mapping(7)],  ALTER  USER  MAPPING
45       [alter_user_mapping(7)]
46
47
48
49SQL - Language Statements         2014-02-17              DROP USER MAPPING(7)
Impressum