select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Supported versions: Current (18) / 17 / 16 / 15 / 14
Development versions: 19 / devel
Unsupported versions: 13 / 12 / 11 / 10 / 9.6 / 9.5 / 9.4 / 9.3 / 9.2 / 9.1 / 9.0 / 8.4 / 8.3
Historical version. PostgreSQL 8.4 reached end of support in July 2014. See the current version for supported releases.

F.4. btree_gist

btree_gist provides sample GiST operator classes that implement B-Tree equivalent behavior for the data types int2, int4, int8, float4, float8, numeric, timestamp with time zone, timestamp without time zone, time with time zone, time without time zone, date, interval, oid, money, char, varchar, text, bytea, bit, varbit, macaddr, inet, and cidr.

In general, these operator classes will not outperform the equivalent standard btree index methods, and they lack one major feature of the standard btree code: the ability to enforce uniqueness. However, they are useful for GiST testing and as a base for developing other GiST operator classes.

F.4.1. Example usage

CREATE TABLE test (a int4);
-- create index
CREATE INDEX testidx ON test USING gist (a);
-- query
SELECT * FROM test WHERE a < 10;

F.4.2. Authors

Teodor Sigaev () , Oleg Bartunov (), and Janko Richter (). See http://www.sai.msu.su/~megera/postgres/gist for additional information.

Report a documentation issue

Read the upstream documentation. For corrections, first check the current version.