postgres.git / summary / log / commit / refs

commit    548184dd16d5f817e5d48ffe049acc2fda2fc86a
Author:   Peter Eisentraut <peter@eisentraut.org>
Date:     Wed Apr 02 12:34:24 2025 +0000
First released in: 18.0, 16.9, 17.5

    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.


src/include/nodes/pathnodes.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/include/nodes/pathnodes.h b/src/include/nodes/pathnodes.h index 5e89dbffce2..69d7b3d9b83 100644 --- a/src/include/nodes/pathnodes.h +++ b/src/include/nodes/pathnodes.h @@ -1086,8 +1086,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 { [parent: 9b34f10ee050]