I'm trying to understand the fillfactor in case of btree indexes. From the postgres documentation:
For B-trees, leaf pages are filled to this percentage during initial index build, and also when extending the index at the right (adding new largest key values).
Firstly, what does it mean extending the index at the right? Does it means split the rightest leaf in the B-tree? (images would be helpful).
Why the fillfactor is taken in consideration in this case, and is not taken in consideration only when the index is created?
As far as I know, postgresql will take in consideration the fill factor during the creation. For example, with a fill factor = 50%, right after index creation, the leaves will be 50% full at the most, then, with new insertions, this parameter is not respected (expected for this "right extension").