diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index 87c3e5a1ee1..4e0715aab13 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -11790,9 +11790,9 @@ SELECT xmlagg(x) FROM (SELECT x FROM test ORDER BY y DESC) AS tab;
lag
- lag(value any>
+ lag(value anyelement>
[, offset integer>
- [, default any> ]])
+ [, default anyelement> ]])
@@ -11802,7 +11802,9 @@ SELECT xmlagg(x) FROM (SELECT x FROM test ORDER BY y DESC) AS tab;
returns value evaluated at
the row that is offset
rows before the current row within the partition; if there is no such
- row, instead return default.
+ row, instead return default
+ (which must be of the same type as
+ value).
Both offset and
default are evaluated
with respect to the current row. If omitted,
@@ -11817,9 +11819,9 @@ SELECT xmlagg(x) FROM (SELECT x FROM test ORDER BY y DESC) AS tab;
lead
- lead(value any>
+ lead(value anyelement>
[, offset integer>
- [, default any> ]])
+ [, default anyelement> ]])
@@ -11829,7 +11831,9 @@ SELECT xmlagg(x) FROM (SELECT x FROM test ORDER BY y DESC) AS tab;
returns value evaluated at
the row that is offset
rows after the current row within the partition; if there is no such
- row, instead return default.
+ row, instead return default
+ (which must be of the same type as
+ value).
Both offset and
default are evaluated
with respect to the current row. If omitted,