aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2025-04-02 14:34:24 +0200
committerPeter Eisentraut <peter@eisentraut.org>2025-04-02 14:46:47 +0200
commit748e98d05b752e05c0f860f35f17bb0ba83631ed (patch)
treede7fefbd81a35184390c0077b6c8c6114ff2a989 /src
parent09be39112654c3f158098fdb5f820143c0330763 (diff)
downloadpostgresql-748e98d05b752e05c0f860f35f17bb0ba83631ed.tar.gz
postgresql-748e98d05b752e05c0f860f35f17bb0ba83631ed.zip
Fix code comment
The changes made in commit d2b4b4c2259 contained incorrect comments: They said that certain forward declarations were necessary to "avoid including pathnodes.h here", but the file is itself pathnodes.h! So change the comment to just say it's a forward declaration in one case, and in the other case we don't need the declaration at all because it already appeared earlier in the file.
Diffstat (limited to 'src')
-rw-r--r--src/include/nodes/pathnodes.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/include/nodes/pathnodes.h b/src/include/nodes/pathnodes.h
index c24a1fc8514..ac3af528bc6 100644
--- a/src/include/nodes/pathnodes.h
+++ b/src/include/nodes/pathnodes.h
@@ -1134,8 +1134,7 @@ typedef struct IndexOptInfo IndexOptInfo;
#define HAVE_INDEXOPTINFO_TYPEDEF 1
#endif
-struct IndexPath; /* avoid including pathnodes.h here */
-struct PlannerInfo; /* avoid including pathnodes.h here */
+struct IndexPath; /* forward declaration */
struct IndexOptInfo
{