create_aggregate.out

来自「postgresql8.3.4源码,开源数据库」· OUT 代码 · 共 46 行

OUT
46
字号
---- CREATE_AGGREGATE---- all functions CREATEdCREATE AGGREGATE newavg (   sfunc = int4_avg_accum, basetype = int4, stype = _int8,    finalfunc = int8_avg,   initcond1 = '{0,0}');-- test commentsCOMMENT ON AGGREGATE newavg_wrong (int4) IS 'an agg comment';ERROR:  aggregate newavg_wrong(integer) does not existCOMMENT ON AGGREGATE newavg (int4) IS 'an agg comment';COMMENT ON AGGREGATE newavg (int4) IS NULL;-- without finalfunc; test obsolete spellings 'sfunc1' etcCREATE AGGREGATE newsum (   sfunc1 = int4pl, basetype = int4, stype1 = int4,    initcond1 = '0');-- zero-argument aggregateCREATE AGGREGATE newcnt (*) (   sfunc = int8inc, stype = int8,   initcond = '0');-- old-style spelling of sameCREATE AGGREGATE oldcnt (   sfunc = int8inc, basetype = 'ANY', stype = int8,   initcond = '0');-- aggregate that only cares about null/nonnull inputCREATE AGGREGATE newcnt ("any") (   sfunc = int8inc_any, stype = int8,   initcond = '0');-- multi-argument aggregatecreate function sum3(int8,int8,int8) returns int8 as'select $1 + $2 + $3' language sql strict immutable;create aggregate sum2(int8,int8) (   sfunc = sum3, stype = int8,   initcond = '0');COMMENT ON AGGREGATE nosuchagg (*) IS 'should fail';ERROR:  aggregate nosuchagg(*) does not existCOMMENT ON AGGREGATE newcnt (*) IS 'an agg(*) comment';COMMENT ON AGGREGATE newcnt ("any") IS 'an agg(any) comment';

⌨️ 快捷键说明

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