B+ tree or B-tree

我与影子孤独终老i 提交于 2019-11-27 16:48:09

问题


I am learning about postgresql internals and I am wondering or postgresql B-tree index is actually classic B-tree or B+tree? To spell it out, that means the nodes contain only keys or key-value pairs?


回答1:


B-trees. Only keys. The point of indexes is to store keys to begin with. Data lies in tables, which are logical heaps. Here is a related chapter on Wikipedia.

The physical storage of B-tree indexes and tables is otherwise very similar. They use the same data pages with mostly the same page-layout. More in the manual.



来源:https://stackoverflow.com/questions/25004505/b-tree-or-b-tree

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!