aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Guo <rguo@postgresql.org>2024-06-10 13:05:20 +0900
committerRichard Guo <rguo@postgresql.org>2024-06-10 13:05:20 +0900
commit3cb19f45a3f58fb482999be5fae6ecad74f7fa27 (patch)
treea20a4d673d042e554a31c5b85bd0c5ac23ec056b
parente656657f2b93a96b83fd4038ec5120c5ec9845e5 (diff)
downloadpostgresql-3cb19f45a3f58fb482999be5fae6ecad74f7fa27.tar.gz
postgresql-3cb19f45a3f58fb482999be5fae6ecad74f7fa27.zip
Fix comment about cross-checking the varnullingrels
The nullingrels match checks are not limited to debugging builds. Oversight in commit 867be9c07. Author: Richard Guo Reviewed-by: Alvaro Herrera, Tom Lane, Robert Haas Discussion: https://postgr.es/m/CAMbWs4_SDsdYD7DdQw7RXc3jv3axbg+RGZ7aSi9GaqX=F8hNVw@mail.gmail.com
-rw-r--r--src/backend/optimizer/plan/setrefs.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/optimizer/plan/setrefs.c b/src/backend/optimizer/plan/setrefs.c
index 37abcb4701f..7aed84584c6 100644
--- a/src/backend/optimizer/plan/setrefs.c
+++ b/src/backend/optimizer/plan/setrefs.c
@@ -2775,11 +2775,11 @@ build_tlist_index_other_vars(List *tlist, int ignore_rel)
* Also ensure that varnosyn is incremented by rtoffset.
* If no match, return NULL.
*
- * In debugging builds, we cross-check the varnullingrels of the subplan
- * output Var based on nrm_match. Most call sites should pass NRM_EQUAL
- * indicating we expect an exact match. However, there are places where
- * we haven't cleaned things up completely, and we have to settle for
- * allowing subset or superset matches.
+ * We cross-check the varnullingrels of the subplan output Var based on
+ * nrm_match. Most call sites should pass NRM_EQUAL indicating we expect
+ * an exact match. However, there are places where we haven't cleaned
+ * things up completely, and we have to settle for allowing subset or
+ * superset matches.
*/
static Var *
search_indexed_tlist_for_var(Var *var, indexed_tlist *itlist,