You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
or <literal>*</literal> if the function accepts any input type.
50
-
</para>
51
-
</listitem>
52
-
</varlistentry>
53
-
<varlistentry>
54
-
<term>CASCADE</term>
55
-
<listitem>
56
-
<para>
57
-
Automatically drop objects that depend on the aggregate.
58
-
</para>
59
-
</listitem>
60
-
</varlistentry>
61
-
<varlistentry>
62
-
<term>RESTRICT</term>
63
-
<listitem>
64
-
<para>
65
-
Refuse to drop the aggregate if there are any dependent objects.
66
-
This is the default.
67
-
</para>
68
-
</listitem>
69
-
</varlistentry>
70
-
</variablelist>
71
-
</para>
72
-
</refsect2>
73
-
74
-
<refsect2 id="R2-SQL-DROPAGGREGATE-2">
75
-
<refsect2info>
76
-
<date>1998-04-15</date>
77
-
</refsect2info>
78
-
<title>
79
-
Outputs
80
-
</title>
81
-
<para>
82
-
<variablelist>
83
-
<varlistentry>
84
-
<term><computeroutput>
85
-
DROP AGGREGATE
86
-
</computeroutput></term>
87
-
<listitem>
88
-
<para>
89
-
Message returned if the command is successful.
90
-
</para>
91
-
</listitem>
92
-
</varlistentry>
93
-
<varlistentry>
94
-
<term><computeroutput>
95
-
ERROR: RemoveAggregate: aggregate '<replaceable class="parameter">name</replaceable>' for type <replaceable class="parameter">type</replaceable> does not exist
96
-
</computeroutput></term>
97
-
<listitem>
98
-
<para>
99
-
This message occurs if the aggregate function specified does not
100
-
exist in the database.
101
-
</para>
102
-
</listitem>
103
-
</varlistentry>
104
-
</variablelist>
105
-
</para>
106
-
</refsect2>
20
+
</synopsis>
107
21
</refsynopsisdiv>
108
22
109
-
<refsect1 id="R1-SQL-DROPAGGREGATE-1">
110
-
<refsect1info>
111
-
<date>1998-04-15</date>
112
-
</refsect1info>
113
-
<title>
114
-
Description
115
-
</title>
23
+
<refsect1>
24
+
<title>Description</title>
25
+
116
26
<para>
117
27
<command>DROP AGGREGATE</command> will delete an existing
118
-
aggregatedefinition. To execute this command the current
119
-
user must be the owner of the aggregate.
28
+
aggregatefunction. To execute this command the current
<term><computeroutput>ERROR: RemoveAggregate: aggregate '<replaceable class="parameter">name</replaceable>' for type <replaceable class="parameter">type</replaceable> does not exist</computeroutput></term>
92
+
<listitem>
93
+
<para>
94
+
This message is returned if the specified aggregate function
95
+
does not exist.
96
+
</para>
97
+
</listitem>
98
+
</varlistentry>
99
+
</variablelist>
100
+
</refsect1>
101
+
102
+
<refsect1>
103
+
<title>Examples</title>
104
+
105
+
<para>
106
+
To remove the aggregate function <literal>myavg</literal> for type
107
+
<type>integer</type>:
108
+
<programlisting>
109
+
DROP AGGREGATE myavg(integer);
110
+
</programlisting>
111
+
</para>
136
112
</refsect1>
137
113
138
-
<refsect1 id="R1-SQL-DROPAGGREGATE-2">
139
-
<title>
140
-
Usage
141
-
</title>
114
+
<refsect1>
115
+
<title>Compatibility</title>
116
+
142
117
<para>
143
-
To remove the <literal>myavg</literal> aggregate for type
144
-
<literal>int4</literal>:
118
+
There is no <command>DROP AGGREGATE</command> statement in the SQL
119
+
standard.
145
120
</para>
146
-
<programlisting>
147
-
DROP AGGREGATE myavg(int4);
148
-
</programlisting>
149
121
</refsect1>
150
122
151
-
<refsect1 id="R1-SQL-DROPAGGREGATE-3">
152
-
<title>
153
-
Compatibility
154
-
</title>
155
-
156
-
<refsect2 id="R2-SQL-DROPAGGREGATE-4">
157
-
<refsect2info>
158
-
<date>1998-04-15</date>
159
-
</refsect2info>
160
-
<title>
161
-
SQL92
162
-
</title>
163
-
164
-
<para>
165
-
There is no <command>DROP AGGREGATE</command> statement