]> granicus.if.org Git - postgresql/commitdiff
Fix ancient typo in user-defined-aggregates documentation.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 23 Mar 2011 16:33:14 +0000 (12:33 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 23 Mar 2011 16:33:14 +0000 (12:33 -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 c9b9b56a0c9ca7ec4a61702530d970458ce6069f..9fc0722f4547e95092a7afe29152fe75d6f995a7 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>