From cae565e503c42a0942ca1771665243b4453c5770 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 19 Dec 2008 16:25:19 +0000 Subject: SQL/MED catalog manipulation facilities This doesn't do any remote or external things yet, but it gives modules like plproxy and dblink a standardized and future-proof system for managing their connection information. Martin Pihlak and Peter Eisentraut --- doc/src/sgml/ref/create_user_mapping.sgml | 111 ++++++++++++++++++++++++++++++ 1 file changed, 111 insertions(+) create mode 100644 doc/src/sgml/ref/create_user_mapping.sgml (limited to 'doc/src/sgml/ref/create_user_mapping.sgml') diff --git a/doc/src/sgml/ref/create_user_mapping.sgml b/doc/src/sgml/ref/create_user_mapping.sgml new file mode 100644 index 00000000000..07cfb0a4c20 --- /dev/null +++ b/doc/src/sgml/ref/create_user_mapping.sgml @@ -0,0 +1,111 @@ + + + + + CREATE USER MAPPING + SQL - Language Statements + + + + CREATE USER MAPPING + define a new mapping of a user to a foreign server + + + + CREATE USER MAPPING + + + + +CREATE USER MAPPING FOR { username | USER | CURRENT_USER | PUBLIC } + SERVER servername + [ OPTIONS ( option 'value' [ , ... ] ) ] + + + + + Description + + + CREATE USER MAPPING defines a mapping of a user + to a foreign server. You must be the owner of the server to define + user mappings for it. + + + + + + Parameters + + + + username + + + The name of an existing user that is mapped to foreign server. + CURRENT_USER and USER match the name of + the current user. PUBLIC is used to match all + present and future user names in the system. + + + + + + servername + + + The name of an existing server for which the user mapping is + to be created. + + + + + + OPTIONS ( option ['value'] [, ... ] ) + + + This clause specifies the options of the user mapping. The + options typically define the actual user name and password of + the mapping. Option names must be unque. The allowed option + names and values are specific to the server's foreign-data wrapper. + + + + + + + + Examples + + + Create a user mapping for user bob, server foo: + +CREATE USER MAPPING FOR bob SERVER foo OPTIONS (user 'bob', password 'secret'); + + + + + + + Compatibility + + + CREATE USER MAPPING conforms to ISO/IEC 9075-9 (SQL/MED). + + + + + See Also + + + + + + + + + + -- cgit v1.2.3