diff --git a/doc/src/sgml/gist.sgml b/doc/src/sgml/gist.sgml
index 5cbea8c3d55..1871f742721 100644
--- a/doc/src/sgml/gist.sgml
+++ b/doc/src/sgml/gist.sgml
@@ -291,7 +291,7 @@ CREATE INDEX ON my_table USING GIST (my_inet_column inet_ops);
speed up building a GiST index.
The optional twelfth method stratnum is used to
translate compare types (from
- src/include/nodes/primnodes.h) into strategy numbers
+ src/include/access/cmptype.h) into strategy numbers
used by the operator class. This lets the core code look up operators for
temporal constraint indexes.
@@ -1174,7 +1174,7 @@ my_sortsupport(PG_FUNCTION_ARGS)
Given a CompareType value from
- src/include/nodes/primnodes.h, returns a strategy
+ src/include/access/cmptype.h, returns a strategy
number used by this operator class for matching functionality. The
function should return InvalidStrategy if the
operator class has no matching strategy.