@@ -2,7 +2,7 @@ src/backend/access/spgist/README
22
33SP-GiST is an abbreviation of space-partitioned GiST. It provides a
44generalized infrastructure for implementing space-partitioned data
5- structures, such as quadtrees, k-d trees, and suffix trees (tries). When
5+ structures, such as quadtrees, k-d trees, and radix trees (tries). When
66implemented in main memory, these structures are usually designed as a set of
77dynamically-allocated nodes linked by pointers. This is not suitable for
88direct storing on disk, since the chains of pointers can be rather long and
@@ -56,18 +56,18 @@ Inner tuple consists of:
5656
5757 optional prefix value - all successors must be consistent with it.
5858 Example:
59- suffix tree - prefix value is a common prefix string
59+ radix tree - prefix value is a common prefix string
6060 quad tree - centroid
6161 k-d tree - one coordinate
6262
6363 list of nodes, where node is a (label, pointer) pair.
64- Example of a label: a single character for suffix tree
64+ Example of a label: a single character for radix tree
6565
6666Leaf tuple consists of:
6767
6868 a leaf value
6969 Example:
70- suffix tree - the rest of string (postfix)
70+ radix tree - the rest of string (postfix)
7171 quad and k-d tree - the point itself
7272
7373 ItemPointer to the heap
@@ -122,7 +122,7 @@ space is as good as we can easily make it.
122122(2) Current implementation allows to do picksplit and insert a new leaf tuple
123123in one operation, if the new list of leaf tuples fits on one page. It's
124124always possible for trees with small nodes like quad tree or k-d tree, but
125- suffix trees may require another picksplit.
125+ radix trees may require another picksplit.
126126
127127(3) Addition of node must keep size of inner tuple small enough to fit on a
128128page. After addition, inner tuple could become too large to be stored on
@@ -132,14 +132,14 @@ another page, we can't change the numbers of other tuples on the page, else
132132we'd make downlink pointers to them invalid. To prevent that, SP-GiST leaves
133133a "placeholder" tuple, which can be reused later whenever another tuple is
134134added to the page. See also Concurrency and Vacuum sections below. Right now
135- only suffix trees could add a node to the tuple; quad trees and k-d trees
135+ only radix trees could add a node to the tuple; quad trees and k-d trees
136136make all possible nodes at once in PickSplitFn() call.
137137
138138(4) Prefix value could only partially match a new value, so the SplitTuple
139139action allows breaking the current tree branch into upper and lower sections.
140140Another way to say it is that we can split the current inner tuple into
141141"prefix" and "postfix" parts, where the prefix part is able to match the
142- incoming new value. Consider example of insertion into a suffix tree. We use
142+ incoming new value. Consider example of insertion into a radix tree. We use
143143the following notation, where tuple's id is just for discussion (no such id
144144is actually stored):
145145
0 commit comments