2003-03-21 02:59:18 +08:00
|
|
|
This is B-Tree implementation using GiST for int2, int4, int8, float4, float8
|
New version. Add support for int2, int8, float4, float8, timestamp with/without time zone, time with/without time zone, date, interval, oid, money and macaddr, char, varchar/text, bytea, numeric, bit, varbit, inet/cidr types for GiST
2004-05-28 18:43:32 +08:00
|
|
|
timestamp with/without time zone, time with/without time zone, date,
|
|
|
|
interval, oid, money and macaddr, char, varchar/text, bytea, numeric,
|
|
|
|
bit, varbit, inet/cidr types.
|
2001-08-23 02:27:54 +08:00
|
|
|
|
New version. Add support for int2, int8, float4, float8, timestamp with/without time zone, time with/without time zone, date, interval, oid, money and macaddr, char, varchar/text, bytea, numeric, bit, varbit, inet/cidr types for GiST
2004-05-28 18:43:32 +08:00
|
|
|
All work was done by Teodor Sigaev (teodor@stack.net) , Oleg Bartunov
|
|
|
|
(oleg@sai.msu.su), Janko Richter (jankorichter@yahoo.de).
|
|
|
|
See http://www.sai.msu.su/~megera/postgres/gist for additional
|
|
|
|
information.
|
2001-08-23 02:27:54 +08:00
|
|
|
|
2003-02-19 11:46:00 +08:00
|
|
|
NEWS:
|
New version. Add support for int2, int8, float4, float8, timestamp with/without time zone, time with/without time zone, date, interval, oid, money and macaddr, char, varchar/text, bytea, numeric, bit, varbit, inet/cidr types for GiST
2004-05-28 18:43:32 +08:00
|
|
|
|
|
|
|
Apr 17, 2004 - Performance optimizing
|
|
|
|
|
|
|
|
Jan 21, 2004 - add support for bytea, numeric, bit, varbit, inet/cidr
|
|
|
|
|
|
|
|
Jan 17, 2004 - Reorganizing code and add support for char, varchar/text
|
|
|
|
|
|
|
|
Jan 10, 2004 - btree_gist now support oid , timestamp with time zone ,
|
|
|
|
time with and without time zone, date , interval
|
|
|
|
money, macaddr
|
|
|
|
|
|
|
|
Feb 5, 2003 - btree_gist now support int2, int8, float4, float8
|
2003-02-19 11:46:00 +08:00
|
|
|
|
2001-08-23 02:27:54 +08:00
|
|
|
NOTICE:
|
New version. Add support for int2, int8, float4, float8, timestamp with/without time zone, time with/without time zone, date, interval, oid, money and macaddr, char, varchar/text, bytea, numeric, bit, varbit, inet/cidr types for GiST
2004-05-28 18:43:32 +08:00
|
|
|
This version will works only with postgresql version 7.4 and above
|
2001-08-23 02:27:54 +08:00
|
|
|
because of changes in interface of function calling and in system
|
|
|
|
tables.
|
New version. Add support for int2, int8, float4, float8, timestamp with/without time zone, time with/without time zone, date, interval, oid, money and macaddr, char, varchar/text, bytea, numeric, bit, varbit, inet/cidr types for GiST
2004-05-28 18:43:32 +08:00
|
|
|
|
|
|
|
If you want to index varchar attributes, you have to index using
|
|
|
|
the function text(<varchar>):
|
|
|
|
Example:
|
|
|
|
CREATE TABLE test ( a varchar(23) );
|
|
|
|
CREATE INDEX testidx ON test USING GIST ( text(a) );
|
|
|
|
|
2001-08-23 02:27:54 +08:00
|
|
|
|
|
|
|
INSTALLATION:
|
|
|
|
|
|
|
|
gmake
|
|
|
|
gmake install
|
|
|
|
-- load functions
|
|
|
|
psql <database> < btree_gist.sql
|
|
|
|
|
|
|
|
REGRESSION TEST:
|
|
|
|
|
|
|
|
gmake installcheck
|
|
|
|
|
|
|
|
EXAMPLE USAGE:
|
|
|
|
|
|
|
|
create table test (a int4);
|
|
|
|
-- create index
|
|
|
|
create index testidx on test using gist (a);
|
|
|
|
-- query
|
|
|
|
select * from test where a < 10;
|
|
|
|
|