summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2024-07-01 06:50:10 +0000
committerPeter Eisentraut2024-07-01 06:50:10 +0000
commitda2aeba8f53379e84a8f3f656b6c2ffe5878eff5 (patch)
tree0e68c819c2f857927274d9711dfda068b80b3afc
parentda486d360103fbb3cd0d3f3b70134d47e9bb652a (diff)
Remove useless initializations
The struct is already initialized to all zeros right before this, and randomly initializing a few but not all fields to zero again has no technical or educational value. Reviewed-by: Tomasz Rybak <[email protected]> Discussion: https://www.postgresql.org/message-id/flat/[email protected]
-rw-r--r--src/backend/utils/cache/relcache.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/backend/utils/cache/relcache.c b/src/backend/utils/cache/relcache.c
index 930cc03ee2..66ed24e401 100644
--- a/src/backend/utils/cache/relcache.c
+++ b/src/backend/utils/cache/relcache.c
@@ -536,8 +536,6 @@ RelationBuildTupleDesc(Relation relation)
constr = (TupleConstr *) MemoryContextAllocZero(CacheMemoryContext,
sizeof(TupleConstr));
- constr->has_not_null = false;
- constr->has_generated_stored = false;
/*
* Form a scan key that selects only user attributes (attnum > 0).