Re: Replace px_memset() with explicit_bzero()

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: Peter Eisentraut <peter(at)eisentraut(dot)org>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Replace px_memset() with explicit_bzero()
Date: 2026-08-25 08:16:41
Message-ID: BEA9F53A-125E-4CD0-8016-54D3F3AB2B6E@yesql.se
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On 25 Aug 2026, at 10:14, Peter Eisentraut <peter(at)eisentraut(dot)org> wrote:

> The former was trying to do the same as the latter, but the latter has more robust and portable implementations, and it's the standard across the tree, so replace and remove px_memset().

While I didn't read the patch, +1 on the concept. It's been on my TODO since
it was reported in https://postgr.es/m/87ldew2yqu.fsf@wibble.ilmari.org but
hadn't bubbled to the top.

--
Daniel Gustafsson

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2026-08-25 08:17:33 Re: [PATCH] Avoid signed overflow in bms_prev_member assertion
Previous Message Heikki Linnakangas 2026-08-25 08:15:25 Re: Fix for fragile code in ltree/crc32.c