-
+
Indexes
Postgres provides several index types:
- B-tree, R-tree, and Hash. Each index type is more appropriate for
+ B-tree, R-tree, GiST, and Hash. Each index type is more appropriate for
a particular query type because of the algorithm it uses.
- Currently, only the B-tree implementation supports multicolumn
+ Currently, only the B-tree and GiST implementations support multicolumn
indexes. Up to 16 columns may be specified. (This limit can be
altered when building
Postgres; see the
file pg_config.h.)
CREATE UNIQUE INDEX name ON table (column , ...);
- Only B-tree indexes can be declared unique.
+ Currently, only B-tree indexes can be declared unique.