Imported upstream version 1.5
[manpages-zh.git] / raw / man7 / alter_aggregate.7
blobe08a014ae1b7233ac166ebd10ac2aed401bc6189
1 .\\" auto-generated by docbook2man-spec $Revision: 1.1 $
2 .TH "ALTER AGGREGATE" "7" "2003-11-02" "SQL - Language Statements" "SQL Commands"
3 .SH NAME
4 ALTER AGGREGATE \- change the definition of an aggregate function
6 .SH SYNOPSIS
7 .sp
8 .nf
9 ALTER AGGREGATE \fIname\fR ( \fItype\fR ) RENAME TO \fInewname\fR
10 .sp
11 .fi
12 .SH "DESCRIPTION"
13 .PP
14 \fBALTER AGGREGATE\fR changes the definition of an
15 aggregate function. The only currently available functionality is to
16 rename the aggregate function.
17 .SH "PARAMETERS"
18 .TP
19 \fB\fIname\fB\fR
20 The name (optionally schema-qualified) of an existing aggregate function.
21 .TP
22 \fB\fItype\fB\fR
23 The argument data type of the aggregate function, or
24 * if the function accepts any data type.
25 .TP
26 \fB\fInewname\fB\fR
27 The new name of the aggregate function.
28 .SH "EXAMPLES"
29 .PP
30 To rename the aggregate function myavg for type
31 \fBinteger\fR to my_average:
32 .sp
33 .nf
34 ALTER AGGREGATE myavg(integer) RENAME TO my_average;
35 .sp
36 .fi
37 .SH "COMPATIBILITY"
38 .PP
39 There is no \fBALTER AGGREGATE\fR statement in the SQL
40 standard.
41 .SH "SEE ALSO"
42 CREATE AGGREGATE [\fBcreate_aggregate\fR(7)], DROP AGGREGATE [\fBdrop_aggregate\fR(l)]