diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2024-03-28 11:44:00 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2024-03-28 11:44:00 -0400 |
commit | be98a550cc81994959f19a117cb2732762df924c (patch) | |
tree | 75c411ba3dd179dcdc53a702fc40d07e087a1dc0 /src | |
parent | 213c959a294d56445bfe79d7f28a9b1f8a928746 (diff) | |
download | postgresql-be98a550cc81994959f19a117cb2732762df924c.tar.gz postgresql-be98a550cc81994959f19a117cb2732762df924c.zip |
Update comment in set_dummy_rel_pathlist().
This comment claimed that set_dummy_rel_pathlist() has callers
other than (possibly indirectly) set_rel_size(). It doesn't,
so revise the argument to not rely on that.
Noted by Richard Guo.
Discussion: https://postgr.es/m/CAMbWs4-KFEU_fDuJPNCOkUu3rwvZvKBEytkd9VrM4kH4-2h1CQ@mail.gmail.com
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/optimizer/path/allpaths.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/optimizer/path/allpaths.c b/src/backend/optimizer/path/allpaths.c index 7bad4044580..3151ad1f64b 100644 --- a/src/backend/optimizer/path/allpaths.c +++ b/src/backend/optimizer/path/allpaths.c @@ -2180,9 +2180,9 @@ set_dummy_rel_pathlist(RelOptInfo *rel) /* * We set the cheapest-path fields immediately, just in case they were - * pointing at some discarded path. This is redundant when we're called - * from set_rel_size(), but not when called from elsewhere, and doing it - * twice is harmless anyway. + * pointing at some discarded path. This is redundant in current usage + * because set_rel_pathlist will do it later, but it's cheap so we keep it + * for safety and consistency with mark_dummy_rel. */ set_cheapest(rel); } |