RefLib

Reference library for AI

Back

postgresql_16:7.1.80.1 Description

PostgreSQL 16 > Reference > SQL Commands > CREATE SERVER > Description

CREATE SERVER defines a new foreign server. The user who defines the server becomes its owner.

A foreign server typically encapsulates connection information that a foreign-data wrapper uses to access an external data resource. Additional user-specific connection information may be specified by means of user mappings.

The server name must be unique within the database.

Creating a server requires USAGE privilege on the foreign-data wrapper being used.

Back