alter_aggregate.7

来自「PostgreSQL 8.2中增加了很多企业用户所需要的功能和性能上的提高,其开」· 7 代码 · 共 77 行

7
77
字号
.\\" auto-generated by docbook2man-spec $Revision: 1.1.1.1 $.TH "ALTER AGGREGATE" "" "2008-01-03" "SQL - Language Statements" "SQL Commands".SH NAMEALTER AGGREGATE \- change the definition of an aggregate function.SH SYNOPSIS.sp.nfALTER AGGREGATE \fIname\fR ( \fItype\fR [ , ... ] ) RENAME TO \fInew_name\fRALTER AGGREGATE \fIname\fR ( \fItype\fR [ , ... ] ) OWNER TO \fInew_owner\fRALTER AGGREGATE \fIname\fR ( \fItype\fR [ , ... ] ) SET SCHEMA \fInew_schema\fR.sp.fi.SH "DESCRIPTION".PP\fBALTER AGGREGATE\fR changes the definition of anaggregate function..PPYou must own the aggregate function to use \fBALTER AGGREGATE\fR.To change the schema of an aggregate function, you must also haveCREATE privilege on the new schema.To alter the owner, you must also be a direct or indirect member of the newowning role, and that role must have CREATE privilege onthe aggregate function's schema. (These restrictions enforce that alteringthe owner doesn't do anything you couldn't do by dropping and recreatingthe aggregate function. However, a superuser can alter ownership of anyaggregate function anyway.).SH "PARAMETERS".TP\fB\fIname\fB\fRThe name (optionally schema-qualified) of an existing aggregate function..TP\fB\fItype\fB\fRAn input data type on which the aggregate function operates.To reference a zero-argument aggregate function, write *in place of the list of input data types..TP\fB\fInew_name\fB\fRThe new name of the aggregate function..TP\fB\fInew_owner\fB\fRThe new owner of the aggregate function..TP\fB\fInew_schema\fB\fRThe new schema for the aggregate function..SH "EXAMPLES".PPTo rename the aggregate function myavg for type\fBinteger\fR to my_average:.sp.nfALTER AGGREGATE myavg(integer) RENAME TO my_average;.sp.fi.PPTo change the owner of the aggregate function myavg for type\fBinteger\fR to joe:.sp.nfALTER AGGREGATE myavg(integer) OWNER TO joe;.sp.fi.PPTo move the aggregate function myavg for type\fBinteger\fR into schema myschema:.sp.nfALTER AGGREGATE myavg(integer) SET SCHEMA myschema;.sp.fi.SH "COMPATIBILITY".PPThere is no \fBALTER AGGREGATE\fR statement in the SQLstandard..SH "SEE ALSO"CREATE AGGREGATE [\fBcreate_aggregate\fR(7)], DROP AGGREGATE [\fBdrop_aggregate\fR(l)]

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?