postgresql/contrib/bloom
Michael Paquier 4c0239cb7a Remove redundant memset(0) calls for page init of some index AMs
Bloom, GIN, GiST and SP-GiST rely on PageInit() to initialize the
contents of a page, and this routine fills entirely a page with zeros
for a size of BLCKSZ, including the special space.  Those index AMs have
been using an extra memset() call to fill with zeros the special page
space, or even the whole page, which is not necessary as PageInit()
already does this work, so let's remove them.  GiST was not doing this
extra call, but has commented out a system call that did so since
6236991.

While on it, remove one MAXALIGN() for SP-GiST as PageInit() takes care
of that.  This makes the whole page initialization logic more consistent
across all index AMs.

Author: Bharath Rupireddy
Reviewed-by: Vignesh C, Mahendra Singh Thalor
Discussion: https://postgr.es/m/CALj2ACViOo2qyaPT7krWm4LRyRTw9kOXt+g6PfNmYuGA=YHj9A@mail.gmail.com
2021-04-07 14:35:26 +09:00
..
expected Fix failure with lock mode used for custom relation options 2019-09-25 10:07:23 +09:00
sql Fix failure with lock mode used for custom relation options 2019-09-25 10:07:23 +09:00
t tap tests: replace 'master' with 'primary'. 2020-07-08 12:39:56 -07:00
.gitignore Bloom index contrib module 2016-04-01 16:42:24 +03:00
Makefile Split all OBJS style lines in makefiles into one-line-per-entry style. 2019-11-05 14:41:07 -08:00
blcost.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
blinsert.c Remove redundant memset(0) calls for page init of some index AMs 2021-04-07 14:35:26 +09:00
bloom--1.0.sql Minor fixes in contrib installation scripts. 2016-06-14 10:47:06 -04:00
bloom.control Bloom index contrib module 2016-04-01 16:42:24 +03:00
bloom.h Pass down "logically unchanged index" hint. 2021-01-13 08:11:00 -08:00
blscan.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
blutils.c Remove redundant memset(0) calls for page init of some index AMs 2021-04-07 14:35:26 +09:00
blvacuum.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
blvalidate.c Update copyright for 2021 2021-01-02 13:06:25 -05:00