More GIN refactoring.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 04eee1fa9ee80dabf7cf4b8b9106897272e9b291
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2013-11-20T15:01:33Z
Releases: 9.4.0
More GIN refactoring.

Split off the portion of ginInsertValue that inserts the tuple to current
level into a separate function, ginPlaceToPage. ginInsertValue's charter
is now to recurse up the tree to insert the downlink, when a page split is
required.

This is in preparation for a patch to change the way incomplete splits are
handled, which will need to do these operations separately. And IMHO makes
the code more readable anyway.

Files

PathChange+/−
src/backend/access/gin/ginbtree.c modified +148 −128