1DROP AGGREGATE(7)       PostgreSQL 9.2.24 Documentation      DROP AGGREGATE(7)
2
3
4

NAME

6       DROP_AGGREGATE - remove an aggregate function
7

SYNOPSIS

9       DROP AGGREGATE [ IF EXISTS ] name ( argtype [ , ... ] ) [ CASCADE | RESTRICT ]
10

DESCRIPTION

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

PARAMETERS

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

EXAMPLES

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

COMPATIBILITY

42       There is no DROP AGGREGATE statement in the SQL standard.
43

SEE ALSO

45       ALTER AGGREGATE (ALTER_AGGREGATE(7)), CREATE AGGREGATE
46       (CREATE_AGGREGATE(7))
47
48
49
50PostgreSQL 9.2.24                 2017-11-06                 DROP AGGREGATE(7)
Impressum