summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2023-05-17 11:46:15 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2023-05-17 11:46:15 -0400
commit69c430626b5eb44825a12e8bc90a59a90c4f5a03 (patch)
tree1961329fed767a87cf7959cd88d1ac1b7d5f03d1
parent9df8f903eb6758be5a19e66cdf77e922e9329c31 (diff)
downloadpostgresql-69c430626b5eb44825a12e8bc90a59a90c4f5a03.tar.gz
Track tlist_vinfo.varnullingrels even in non-Assert builds.
Oversight in commit 867be9c07 (which should get reverted along with that, if we ever do revert it). Per buildfarm.
-rw-r--r--src/backend/optimizer/plan/setrefs.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/backend/optimizer/plan/setrefs.c b/src/backend/optimizer/plan/setrefs.c
index a154c71a48..1ca26baa25 100644
--- a/src/backend/optimizer/plan/setrefs.c
+++ b/src/backend/optimizer/plan/setrefs.c
@@ -42,9 +42,7 @@ typedef struct
int varno; /* RT index of Var */
AttrNumber varattno; /* attr number of Var */
AttrNumber resno; /* TLE position of Var */
-#ifdef USE_ASSERT_CHECKING
Bitmapset *varnullingrels; /* Var's varnullingrels */
-#endif
} tlist_vinfo;
typedef struct
@@ -2682,9 +2680,7 @@ build_tlist_index(List *tlist)
vinfo->varno = var->varno;
vinfo->varattno = var->varattno;
vinfo->resno = tle->resno;
-#ifdef USE_ASSERT_CHECKING
vinfo->varnullingrels = var->varnullingrels;
-#endif
vinfo++;
}
else if (tle->expr && IsA(tle->expr, PlaceHolderVar))
@@ -2737,9 +2733,7 @@ build_tlist_index_other_vars(List *tlist, int ignore_rel)
vinfo->varno = var->varno;
vinfo->varattno = var->varattno;
vinfo->resno = tle->resno;
-#ifdef USE_ASSERT_CHECKING
vinfo->varnullingrels = var->varnullingrels;
-#endif
vinfo++;
}
}