Databases · Middle · Question 1 of 75
What data structure does a default PostgreSQL index use?
- ✓Correct answer: A B-tree
- 2A hash table
- 3A linked list
Explanation
B-trees keep keys sorted, so they support equality, ranges (<, BETWEEN), sorting and prefix LIKE 'abc%' (with the right collation or operator class). Hash, GIN, GiST and BRIN are for special cases.