summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-03-23 12:33:14 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2011-03-23 12:33:40 -0400
commit6d0877fc5e5847e272129eb23ae48246ca352d2a (patch)
tree8dde385a6231c451e7ada5cab20b155ecc2d3c53
parent9bb1ddec4cd998c5fbac278a54d8ad5a5011e4e1 (diff)
Fix ancient typo in user-defined-aggregates documentation.
The description of the initcond value for the built-in avg(float8) aggregate has been wrong since it was written. Noted by Disc Magnet.
-rw-r--r--doc/src/sgml/xaggr.sgml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/sgml/xaggr.sgml b/doc/src/sgml/xaggr.sgml
index 6f6f0950679..d46482509b4 100644
--- a/doc/src/sgml/xaggr.sgml
+++ b/doc/src/sgml/xaggr.sgml
@@ -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>