From: Daniel Gustafsson Date: Tue, 16 Dec 2025 08:46:53 +0000 (+0100) Subject: doc: Update header file mention for CompareType X-Git-Url: http://git.postgresql.org/gitweb/sta%3Cscript%20data-cfasync=?a=commitdiff_plain;p=postgresql.git doc: Update header file mention for CompareType Commit 119fc30 moved CompareType to cmptype.h but the mention in the docs still refered to primnodes.h Author: Daisuke Higuchi Reviewed-by: Paul A Jungwirth Reviewed-by: Daniel Gustafsson Discussion: https://postgr.es/m/CAEVT6c8guXe5P=L_Un5NUUzCgEgbHnNcP+Y3TV2WbQh-xjiwqA@mail.gmail.com Backpatch-through: 18 --- 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.