diff --git a/doc/src/sgml/fdwhandler.sgml b/doc/src/sgml/fdwhandler.sgml
index 9291b8f6d4b..b1f16f3cbad 100644
--- a/doc/src/sgml/fdwhandler.sgml
+++ b/doc/src/sgml/fdwhandler.sgml
@@ -381,9 +381,9 @@ GetForeignUpperPaths(PlannerInfo *root,
that should receive paths representing computation of this step,
and input_rel is the relation representing the input to this
step. The extra parameter provides additional details,
- currently, it is set only for UPPERREL_PARTIAL_GROUP_AGG>
+ currently, it is set only for UPPERREL_PARTIAL_GROUP_AGG
or UPPERREL_GROUP_AGG, in which case it points to a
- GroupPathExtraData> structure.
+ GroupPathExtraData structure.
(Note that ForeignPath paths added
to output_rel would typically not have any direct dependency
on paths of the input_rel, since their processing is expected