aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistvalidate.c
diff options
context:
space:
mode:
authorNathan Bossart <nathan@postgresql.org>2024-12-11 14:19:14 -0600
committerNathan Bossart <nathan@postgresql.org>2024-12-11 14:19:14 -0600
commite8d59294282bd01bc06f2af13c79b9155024a917 (patch)
tree33066feed5bb93d88afd0ca7207cc2f34fc58833 /src/backend/access/gist/gistvalidate.c
parent398d3e3b5b8f4c81795e07655f28036839cc0550 (diff)
downloadpostgresql-e8d59294282bd01bc06f2af13c79b9155024a917.tar.gz
postgresql-e8d59294282bd01bc06f2af13c79b9155024a917.zip
Use pg_memory_is_all_zeros() in pgstatfuncs.c.
There are a few places in this file that use memset() and memcmp() to determine whether a section of memory is all zeros. This commit modifies them to use pg_memory_is_all_zeros() instead. These aren't expected to be hot code paths, but this may optimize them a bit. Plus, this allows us to remove some variables that were only needed for the memset() and memcmp(). Author: Bertrand Drouvot Reviewed-by: Michael Paquier Discussion: https://postgr.es/m/Z1hNubHfvMxlW6eu%40ip-10-97-1-34.eu-west-3.compute.internal
Diffstat (limited to 'src/backend/access/gist/gistvalidate.c')
0 files changed, 0 insertions, 0 deletions