IndexMethod enum
The index methods Postgres offers, for ColumnIndexOptions.method.
Signature:
export declare enum IndexMethod
Enumeration Members
|
Member |
Value |
Description |
|---|---|---|
|
BRIN |
|
Block range: huge tables whose values track their physical order. |
|
BTREE |
|
Balanced tree: equality, ranges and ordering. Postgres's default. |
|
GIN |
|
Inverted index: containment in arrays, |
|
GIST |
|
Generalised search tree: geometric types, ranges, full-text. |
|
HASH |
|
Hash: equality only, and smaller than a btree for that alone. |
|
SPGIST |
|
Space-partitioned GiST: quadtrees, tries and other unbalanced trees. |
Remarks
Postgres uses BTREE when nothing is given, and it is the only method with an ordered key — so it is the one to want unless the data has a shape another method is built for.