1DROP AGGREGATE(7)                SQL Commands                DROP AGGREGATE(7)
2
3
4

NAME

6       DROP AGGREGATE - remove an aggregate function
7
8

SYNOPSIS

10       DROP AGGREGATE [ IF EXISTS ] name ( type [ , ... ] ) [ CASCADE | RESTRICT ]
11
12

DESCRIPTION

14       DROP  AGGREGATE removes an existing aggregate function. To execute this
15       command the current user must be the owner of the aggregate function.
16

PARAMETERS

18       IF EXISTS
19              Do not throw an error if the aggregate does not exist. A  notice
20              is issued in this case.
21
22       name   The  name (optionally schema-qualified) of an existing aggregate
23              function.
24
25       type   An input data type on which the aggregate function operates.  To
26              reference  a  zero-argument aggregate function, write * in place
27              of the list of input data types.
28
29       CASCADE
30              Automatically drop objects that depend on  the  aggregate  func‐
31              tion.
32
33       RESTRICT
34              Refuse  to  drop the aggregate function if any objects depend on
35              it. This is the default.
36

EXAMPLES

38       To remove the aggregate function myavg for type integer:
39
40       DROP AGGREGATE myavg(integer);
41
42

COMPATIBILITY

44       There is no DROP AGGREGATE statement in the SQL standard.
45

SEE ALSO

47       ALTER AGGREGATE [alter_aggregate(7)], CREATE  AGGREGATE  [create_aggre‐
48       gate(7)]
49
50
51
52SQL - Language Statements         2011-09-22                 DROP AGGREGATE(7)
Impressum