hash: Refactor hash index creation.
Robert Haas <rhaas@postgresql.org>
hash: Refactor hash index creation. The primary goal here is to move all of the related page modifications to a single section of code, in preparation for adding write-ahead logging. In passing, rename _hash_metapinit to _hash_init, since it initializes more than just the metapage. Amit Kapila. The larger patch series of which this is a part has been reviewed and tested by Álvaro Herrera, Ashutosh Sharma, Mark Kirkwood, Jeff Janes, and Jesper Pedersen.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/hash/hash.c | modified | +2 −2 |
| src/backend/access/hash/hashovfl.c | modified | +0 −62 |
| src/backend/access/hash/hashpage.c | modified | +136 −67 |
| src/include/access/hash.h | modified | +6 −4 |