From 69c430626b5eb44825a12e8bc90a59a90c4f5a03 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 17 May 2023 11:46:15 -0400 Subject: 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. --- src/backend/optimizer/plan/setrefs.c | 6 ------ 1 file changed, 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++; } } -- cgit v1.2.1