DROP AGGREGATE

Name

DROP AGGREGATE  --  Removes the definition of an aggregate function 集約関数の定義の削除

Synopsis

DROP AGGREGATE name type
  

入力

name

The name of an existing aggregate function.

既存の集約関数の名前です。

type

The type of an existing aggregate function. (Refer to the PostgreSQL User's Guide for further information about data types).

既存の集約関数の型です。 (データ型についての詳細は PostgreSQL ユーザガイドの を参照して下さい。)

出力

DROP

Message returned if the command is successful.

コマンドが成功したときに戻るメッセージです。

WARN RemoveAggregate: aggregate 'agg' for 'type' does not exist

This message occurs if the aggregate function specified does not exist in the database.

このメッセージはデータベースに指定した集約関数が 存在しない場合に出力されます。

説明

DROP AGGREGATE will remove all references to an existing aggregate definition. To execute this command the current user must be the owner of the aggregate.

DROP AGGREGATE は既存の集約の定義にたいする すべての参照を削除します。このコマンドの実行には現在のユーザが 集約の所有者でなくてはなりません。

注意事項

The DROP AGGREGATE statement is a Postgres language extension.

DROP AGGREGATE 文は Postgres の拡張言語です。

Refer to the CREATE AGGREGATE statement to create aggregate functions.

集約関数を生成するには CREATE AGGREGATE 文を参照して下さい。

使用法

To remove the myavg aggregate for type int4:

int4 に対するmyavg 集約を削除するには次のようにします:

DROP AGGREGATE myavg int4;
  

互換性

SQL92

There is no DROP AGGREGATE statement in SQL92.

SQL92 に DROP AGGREGATE 文はありません。