Re: remove redundant memset() call

From: Nathan Bossart <nathandbossart(at)gmail(dot)com>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Zhihong Yu <zyu(at)yugabyte(dot)com>, PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: remove redundant memset() call
Date: 2022-10-13 19:18:41
Message-ID: 20221013191841.GB1563962@nathanxps13
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Oct 13, 2022 at 03:15:13PM -0400, Bruce Momjian wrote:
> On Thu, Oct 13, 2022 at 12:12:35PM -0700, Zhihong Yu wrote:
>> the memory has been zero'ed out by palloc0().
>>
>> memcpy is not relevant w.r.t. resetting memory.
>
> Ah, good point.

Yeah, it looks like this was missed in ca7f8e2.

--
Nathan Bossart
Amazon Web Services: https://aws.amazon.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Daniel Gustafsson 2022-10-13 19:40:42 Re: remove redundant memset() call
Previous Message Bruce Momjian 2022-10-13 19:15:13 Re: remove redundant memset() call