Fix ancient typo in user-defined-aggregates documentation.
authorTom Lane <[email protected]>
Wed, 23 Mar 2011 16:33:14 +0000 (12:33 -0400)
committerTom Lane <[email protected]>
Wed, 23 Mar 2011 16:34:08 +0000 (12:34 -0400)
The description of the initcond value for the built-in avg(float8)
aggregate has been wrong since it was written.  Noted by Disc Magnet.

doc/src/sgml/xaggr.sgml

index dce8d8f1caa11beb9a3e052aab990ab93322264d..15ef46cc1e7d038dc5a08d8cad7810b591dbc559 100644 (file)
@@ -106,7 +106,7 @@ CREATE AGGREGATE avg (float8)
     sfunc = float8_accum,
     stype = float8[],
     finalfunc = float8_avg,
-    initcond = '{0,0}'
+    initcond = '{0,0,0}'
 );
 </programlisting>
   </para>