Fix incorrect comments for Memoize struct
authorDavid Rowley <[email protected]>
Thu, 19 May 2022 05:14:23 +0000 (17:14 +1200)
committerDavid Rowley <[email protected]>
Thu, 19 May 2022 05:14:23 +0000 (17:14 +1200)
Reported-by: Peter Eisentraut
Discussion: https://postgr.es/m/0635f5aa-4973-8dc2-4e4e-df9fd5778a65@enterprisedb.com
Backpatch-through: 14, where Memoize was added

src/include/nodes/plannodes.h

index e319e83bd826e1d68287dd81118087dacf5a4959..0ea9a22dfb72282b59a02869704090e5bb405066 100644 (file)
@@ -824,8 +824,9 @@ typedef struct Memoize
    int         numKeys;        /* size of the two arrays below */
 
    Oid        *hashOperators;  /* hash operators for each key */
-   Oid        *collations;     /* cache keys */
-   List       *param_exprs;    /* exprs containing parameters */
+   Oid        *collations;     /* collations for each key */
+   List       *param_exprs;    /* cache keys in the form of exprs containing
+                                * parameters */
    bool        singlerow;      /* true if the cache entry should be marked as
                                 * complete after we store the first tuple in
                                 * it. */