git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9df8f90)
Track tlist_vinfo.varnullingrels even in non-Assert builds.
2023年5月17日 15:46:15 +0000 (11:46 -0400)
2023年5月17日 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.


diff --git a/src/backend/optimizer/plan/setrefs.c b/src/backend/optimizer/plan/setrefs.c
index a154c71a480bb1f68b3a2b964181268d45515627..1ca26baa2599f0b9b9c3ce86d0b6f155257880a5 100644 (file)
--- 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++;
}
}
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /