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

DROP FOREIGN DATA WRAPPER

DROP FOREIGN DATA WRAPPER <refpurpose>remove a foreign-data wrapper</refpurpose> — 外部データラッパーを削除する

概要

DROP FOREIGN DATA WRAPPER [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]

説明

<title>Description</title>

<command>DROP FOREIGN DATA WRAPPER</command> removes an existing foreign-data wrapper. To execute this command, the current user must be the owner of the foreign-data wrapper. DROP FOREIGN DATA WRAPPERは既存の外部データラッパーを削除します。 このコマンドを実行するためには、現在のユーザは外部データラッパーの所有者でなければなりません。

パラメータ

<title>Parameters</title>
IF EXISTS

Do not throw an error if the foreign-data wrapper does not exist. A notice is issued in this case. 外部データラッパーが存在しない場合にエラーを発生しません。 この場合、注意が発行されます。

name

The name of an existing foreign-data wrapper. 既存の外部データラッパーの名前です。

CASCADE

Automatically drop objects that depend on the foreign-data wrapper (such as foreign tables and servers), and in turn all objects that depend on those objects (see <xref linkend="ddl-depend"/>). 外部データラッパーに依存するオブジェクト(外部テーブルやサーバなど)を自動的に削除し、さらにそれらのオブジェクトに依存するすべてのオブジェクトも削除します(5.14参照)。

RESTRICT

Refuse to drop the foreign-data wrapper if any objects depend on it. This is the default. 外部データラッパーに依存するオブジェクトが存在する場合に削除を取りやめます。 これがデフォルトです。

<title>Examples</title>

Drop the foreign-data wrapper <literal>dbi</literal>: 外部データラッパーdbiを削除します。

DROP FOREIGN DATA WRAPPER dbi;

互換性

<title>Compatibility</title>

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

関連項目

<title>See Also</title> CREATE FOREIGN DATA WRAPPER, ALTER FOREIGN DATA WRAPPER