- Notifications
You must be signed in to change notification settings - Fork5k
Commit4c0239c
committed
Remove redundant memset(0) calls for page init of some index AMs
Bloom, GIN, GiST and SP-GiST rely on PageInit() to initialize thecontents of a page, and this routine fills entirely a page with zerosfor a size of BLCKSZ, including the special space. Those index AMs havebeen using an extra memset() call to fill with zeros the special pagespace, or even the whole page, which is not necessary as PageInit()already does this work, so let's remove them. GiST was not doing thisextra call, but has commented out a system call that did so since6236991.While on it, remove one MAXALIGN() for SP-GiST as PageInit() takes careof that. This makes the whole page initialization logic more consistentacross all index AMs.Author: Bharath RupireddyReviewed-by: Vignesh C, Mahendra Singh ThalorDiscussion:https://postgr.es/m/CALj2ACViOo2qyaPT7krWm4LRyRTw9kOXt+g6PfNmYuGA=YHj9A@mail.gmail.com1 parent9afffcb commit4c0239c
File tree
5 files changed
+1
-7
lines changed- contrib/bloom
- src/backend/access
- gin
- gist
- spgist
5 files changed
+1
-7
lines changedLines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
66 |
| - | |
67 | 66 |
| |
68 | 67 |
| |
69 | 68 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
411 | 411 |
| |
412 | 412 |
| |
413 | 413 |
| |
414 |
| - | |
415 | 414 |
| |
416 | 415 |
| |
417 | 416 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
348 | 348 |
| |
349 | 349 |
| |
350 | 350 |
| |
351 |
| - | |
352 | 351 |
| |
353 | 352 |
| |
354 | 353 |
| |
|
Lines changed: 0 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
761 | 761 |
| |
762 | 762 |
| |
763 | 763 |
| |
764 |
| - | |
765 |
| - | |
766 | 764 |
| |
767 | 765 |
| |
768 | 766 |
| |
|
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
677 | 677 |
| |
678 | 678 |
| |
679 | 679 |
| |
680 |
| - | |
| 680 | + | |
681 | 681 |
| |
682 |
| - | |
683 | 682 |
| |
684 | 683 |
| |
685 | 684 |
| |
|
0 commit comments
Comments
(0)