-
Book Overview & Buying
-
Table Of Contents
Mastering PostgreSQL 17 - Sixth Edition
By :
So far, only binary trees have been discussed. However, in many cases, B-trees are just not enough. Why’s that? As we’ve already discussed in this chapter, B-trees are based on sorting. The <, <=, =, >=, and > operators can be handled using B-trees. The trouble is that not every data type can be sorted in a useful way. Just imagine a polygon. How would you sort these objects in a useful way? Sure, you can sort by the area covered, its length, and so on, but doing this won’t allow you to find them using a geometric search.
The solution to this problem is to provide more than just one index type. Each index will serve a special purpose and do exactly what’s needed. The following six index types are available (as of PostgreSQL 17.0):
test=# SELECT * FROM pg_am; oid | amname | amhandler | amtype ------+--------+-----...
Change the font size
Change margin width
Change background colour