From af128be8946616a8820829d25c1caa32faeb72ef Mon Sep 17 00:00:00 2001 From: Evgeniy Ratkov Date: Mon, 20 Jan 2025 15:17:11 +0300 Subject: [PATCH] update comment --- src/backend/optimizer/path/allpaths.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/backend/optimizer/path/allpaths.c b/src/backend/optimizer/path/allpaths.c index 6e725fd4184d..b7cb22503428 100644 --- a/src/backend/optimizer/path/allpaths.c +++ b/src/backend/optimizer/path/allpaths.c @@ -754,7 +754,9 @@ set_rel_pathlist(PlannerInfo *root, RelOptInfo *rel, * Greenplum specific behavior: * Change the path in pathlist if it is a general or segmentgeneral * path that contains volatile restrictions. - * Do not do it, if there is outer query. + * Do not do it, if list of the outer quals is not empty. + * Outer query's motion will be decorated with materialize by + * bring_to_outer_query. */ if (rel->upperrestrictinfo == NULL && rel->reloptkind == RELOPT_BASEREL) handle_gen_seggen_volatile_path(root, rel);