From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Avoid unnecessary MemSet call
Date: Thu, 30 Jun 2022 18:14:11 +0000
Message-ID: <E1o6yg6-000YXH-5B@gemulon.postgresql.org> (raw)
Avoid unnecessary MemSet call
The variable in question was changed from a struct to a pointer some
time ago (77947c51c08). Using MemSet to zero it still works but is
obviously unidiomatic and confusing, so change it to a straight
assignment.
Author: Ranier Vilela <ranier.vf@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/CAEudQApCeq4JjW1BdnwU=m=-DvG5WyUik0Yfn3p6UNphiHjj+w@mail....
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/8cd61d288adfabe1b7f83359eb0abd27382eec08
Modified Files
--------------
src/backend/utils/cache/relcache.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: peter@eisentraut.org
Subject: Re: pgsql: Avoid unnecessary MemSet call
In-Reply-To: <E1o6yg6-000YXH-5B@gemulon.postgresql.org>
References: <E1o6yg6-000YXH-5B@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox