Re: define pg_structiszero(addr, s, r)
Peter Eisentraut <peter@eisentraut.org>
From: Peter Eisentraut <peter@eisentraut.org>
To: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>, pgsql-hackers@lists.postgresql.org
Date: 2024-10-30T08:09:54Z
Lists: pgsql-hackers
On 29.10.24 14:58, Bertrand Drouvot wrote: > hi, > > On Tue, Oct 29, 2024 at 10:23:37AM +0100, Peter Eisentraut wrote: >> On 29.10.24 08:54, Bertrand Drouvot wrote: >>> +static inline bool >>> +pg_mem_is_all_zeros(const char *p, size_t len) >> >> This should be a void * pointer please. > > Thanks for looking at it! > Yeah better, done in v4 attached. Sorry for the confusion. I didn't mean to discourage you from the const qualifier. That should still be there.
Commits
-
Use pg_memory_is_all_zeros() in PageIsVerifiedExtended()
- 03a42c9652f8 18.0 landed
-
Optimize pg_memory_is_all_zeros() in memutils.h
- 5be1dabd2ae0 18.0 landed
-
Remove use of pg_memory_is_all_zeros() in bufpage.c
- e819bbb7c82a 18.0 landed
-
Add pg_memory_is_all_zeros() in memutils.h
- 07e9e28b56db 18.0 landed