Btree gist
From PostgreSQL 中文维基, PostgreSQL 中文站, PostgreSQL 中国社区, PostgreSQL Chinese community
[编辑] btree_gist
btree_gist 提供了 GiST 操作符表的例子,它为 int2, int4, int8, float4, float8, numeric, timestamp with time zone, timestampe without time zone, time with time zone, time without time zone, date, interval, oid, money, char, varchar, text, bytea, bit, varbit, macaddr, inet 和 cidr 等数据类型实现了 B-Tree 等效的行为。
通常,这些操作符表不比等效的标准 btree 索引方法更高效,并且还缺少一个标准 btree 代码的主要特性:能强制唯一性的能力。不过,它们在测试 GiST 方面以及开发其它 GiST 操作符表的时候很有用。
[编辑] 使用举例
CREATE TABLE test (a int4); -- create index CREATE INDEX testidx ON test USING gist (a); -- query SELECT * FROM test WHERE a < 10;
[编辑] 作者
Teodor Sigaev (<teodor@stack.net>), Oleg Bartunov (<oleg@sai.msu.su>),和 Janko Richter (<jankorichter@yahoo.de>).。参阅 http://www.sai.msu.su/~megera/postgres/gist 获取更多的信息。
