Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitda2aeba

Browse files
committed
Remove useless initializations
The struct is already initialized to all zeros right before this, andrandomly initializing a few but not all fields to zero again has notechnical 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 parentda486d3 commitda2aeba

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)

[8]ページ先頭

©2009-2025 Movatter.jp