diff options
author | David Rowley <drowley@postgresql.org> | 2023-08-07 18:16:46 +1200 |
---|---|---|
committer | David Rowley <drowley@postgresql.org> | 2023-08-07 18:16:46 +1200 |
commit | fdd79d8992d600d38eecfab568b27f6d04e4dfb3 (patch) | |
tree | f2da4f8e1debe2950f365f2491419ef75b869539 /src/backend/optimizer/path/joinpath.c | |
parent | 6c00d2c9d4c533dad4e0afe28cfde0e12e4eb4e0 (diff) | |
download | postgresql-fdd79d8992d600d38eecfab568b27f6d04e4dfb3.tar.gz postgresql-fdd79d8992d600d38eecfab568b27f6d04e4dfb3.zip |
Fix misleading comment in paraminfo_get_equal_hashops
The comment mistakenly claimed the code was checking PlaceHolderVars for
volatile functions when the code was actually checking lateral vars.
Update the comment to reflect the reality of the code.
Author: Richard Guo
Discussion: https://postgr.es/m/CAMbWs48HZGZOV85g0fx8z1qDx6NNKHexJPT2FCnKnZhxBWkd-A@mail.gmail.com
Diffstat (limited to 'src/backend/optimizer/path/joinpath.c')
-rw-r--r-- | src/backend/optimizer/path/joinpath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/optimizer/path/joinpath.c b/src/backend/optimizer/path/joinpath.c index 4b58936fa4c..c1d478d2eb2 100644 --- a/src/backend/optimizer/path/joinpath.c +++ b/src/backend/optimizer/path/joinpath.c @@ -529,7 +529,7 @@ paraminfo_get_equal_hashops(PlannerInfo *root, ParamPathInfo *param_info, Node *expr = (Node *) lfirst(lc); TypeCacheEntry *typentry; - /* Reject if there are any volatile functions in PHVs */ + /* Reject if there are any volatile functions in lateral vars */ if (contain_volatile_functions(expr)) { list_free(*operators); |