Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit fdd79d8

Browse files
committed
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
1 parent 6c00d2c commit fdd79d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/optimizer/path/joinpath.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ paraminfo_get_equal_hashops(PlannerInfo *root, ParamPathInfo *param_info,
529529
Node *expr = (Node *) lfirst(lc);
530530
TypeCacheEntry *typentry;
531531

532-
/* Reject if there are any volatile functions in PHVs */
532+
/* Reject if there are any volatile functions in lateral vars */
533533
if (contain_volatile_functions(expr))
534534
{
535535
list_free(*operators);

0 commit comments

Comments
 (0)