RefLib

Reference library for AI

Back

postgresql_16:7.1.94 CREATE USER MAPPING

PostgreSQL 16 > Reference > SQL Commands > CREATE USER MAPPING

define a new mapping of a user to a foreign server

CREATE USER MAPPING [ IF NOT EXISTS ] FOR { user_name | USER | CURRENT_ROLE | CURRENT_USER | PUBLIC }
    SERVER server_name
    [ OPTIONS ( option 'value' [ , ... ] ) ]
CREATE USER MAPPING [ IF NOT EXISTS ] FOR { user_name | USER | CURRENT_ROLE | CURRENT_USER | PUBLIC }
    SERVER server_name
    [ OPTIONS ( option 'value' [ , ... ] ) ]

Subsections

Back