pgsql: Remove useless initializations

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove useless initializations
Date: 2024-07-01 06:55:04
Message-ID: E1sOAwJ-003lBQ-Ff@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(dot)rybak(at)post(dot)pl>
Discussion: https://www.postgresql.org/message-id/flat/a368248e-69e4-40be-9c07-6c3b5880b0a6(at)eisentraut(dot)org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/da2aeba8f53379e84a8f3f656b6c2ffe5878eff5

Modified Files
--------------
src/backend/utils/cache/relcache.c | 2 --
1 file changed, 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message David Rowley 2024-07-01 09:19:18 pgsql: Add context type field to pg_backend_memory_contexts
Previous Message Peter Eisentraut 2024-07-01 06:44:22 pgsql: doc: Clarify that pg_attrdef also stores generation expressions