hash: Refactor hash index creation.

Robert Haas <rhaas@postgresql.org>

Commit: 38305398cdc029e3a74bfad1815cb33f5b087336
Author: Robert Haas <rhaas@postgresql.org>
Date: 2017-03-07T22:03:51Z
Releases: 10.0
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