mirror of
https://github.com/postgres/postgres.git
synced 2026-03-23 10:55:21 -04:00
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
This commit is contained in:
parent
da486d3601
commit
da2aeba8f5
1 changed files with 0 additions and 2 deletions
2
src/backend/utils/cache/relcache.c
vendored
2
src/backend/utils/cache/relcache.c
vendored
|
|
@ -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).
|
||||
|
|
|
|||
Loading…
Reference in a new issue