Skip to content

Commit da2aeba

Browse files
committed
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 <tomasz.rybak@post.pl> Discussion: https://www.postgresql.org/message-id/flat/a368248e-69e4-40be-9c07-6c3b5880b0a6@eisentraut.org
1 parent da486d3 commit da2aeba

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/backend/utils/cache/relcache.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,6 @@ RelationBuildTupleDesc(Relation relation)
536536

537537
constr = (TupleConstr *) MemoryContextAllocZero(CacheMemoryContext,
538538
sizeof(TupleConstr));
539-
constr->has_not_null = false;
540-
constr->has_generated_stored = false;
541539

542540
/*
543541
* Form a scan key that selects only user attributes (attnum > 0).

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy