Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit da2aeba

Browse filesBrowse 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
Copy full SHA for da2aeba

File tree

Expand file treeCollapse file tree

1 file changed

+0
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-2
lines changed
Open diff view settings
Collapse file

‎src/backend/utils/cache/relcache.c‎

Copy file name to clipboardExpand all lines: src/backend/utils/cache/relcache.c
-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.