バージョンごとのドキュメント一覧

DROP SERVER

DROP SERVER <refpurpose>remove a foreign server descriptor</refpurpose> — 外部サーバの記述子を削除する

概要

DROP SERVER [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]

説明

<title>Description</title>

<command>DROP SERVER</command> removes an existing foreign server descriptor. To execute this command, the current user must be the owner of the server. DROP SERVERは既存の外部サーバ記述子を削除します。 このコマンドを実行するためには、現在のユーザはサーバの所有者でなければなりません。

パラメータ

<title>Parameters</title>
IF EXISTS

Do not throw an error if the server does not exist. A notice is issued in this case. サーバが存在しない場合にエラーを発生しません。 この場合、注意が発行されます。

name

The name of an existing server. 既存のサーバの名前です。

CASCADE

Automatically drop objects that depend on the server (such as user mappings), and in turn all objects that depend on those objects (see <xref linkend="ddl-depend"/>). サーバに依存するオブジェクト(ユーザマップなど)を自動的に削除し、さらにそれらのオブジェクトに依存するすべてのオブジェクトも削除します(5.14参照)。

RESTRICT

Refuse to drop the server if any objects depend on it. This is the default. 依存するオブジェクトが存在する場合サーバの削除を取りやめます。 これがデフォルトです。

<title>Examples</title>

Drop a server <literal>foo</literal> if it exists: サーバfooが存在すれば、を削除します。

DROP SERVER IF EXISTS foo;

互換性

<title>Compatibility</title>

<command>DROP SERVER</command> conforms to ISO/IEC 9075-9 (SQL/MED). The <literal>IF EXISTS</literal> clause is a <productname>PostgreSQL</productname> extension. DROP SERVERはISO/IEC 9075-9 (SQL/MED)に従います。 IF EXISTS句はPostgreSQLの拡張です。

関連項目

<title>See Also</title> CREATE SERVER, ALTER SERVER