Track tlist_vinfo.varnullingrels even in non-Assert builds.
authorTom Lane <[email protected]>
Wed, 17 May 2023 15:46:15 +0000 (11:46 -0400)
committerTom Lane <[email protected]>
Wed, 17 May 2023 15:46:15 +0000 (11:46 -0400)
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

index a154c71a480bb1f68b3a2b964181268d45515627..1ca26baa2599f0b9b9c3ce86d0b6f155257880a5 100644 (file)
@@ -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++;
                        }
                }