From 6653f72f7990488a5958451666b81c105d7f91de Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 29 Apr 2024 09:46:43 +0200 Subject: [PATCH v1 3/5] 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. --- src/backend/utils/cache/relcache.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/backend/utils/cache/relcache.c b/src/backend/utils/cache/relcache.c index cc9b0c6524f..b09f6a90e44 100644 --- a/src/backend/utils/cache/relcache.c +++ b/src/backend/utils/cache/relcache.c @@ -535,8 +535,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). -- 2.44.0