postgresql/contrib/btree_gist
Tom Lane 24ad7d4628 Support functions for index opclasses should be immutable.
Found by running opr_sanity on contrib modules.
2007-09-29 23:24:39 +00:00
..
data
expected
sql
btree_bit.c Replace direct assignments to VARATT_SIZEP(x) with SET_VARSIZE(x, len). 2007-02-27 23:48:10 +00:00
btree_bytea.c
btree_cash.c Standard pgindent run for 8.1. 2005-10-15 02:49:52 +00:00
btree_date.c Standard pgindent run for 8.1. 2005-10-15 02:49:52 +00:00
btree_float4.c Standard pgindent run for 8.1. 2005-10-15 02:49:52 +00:00
btree_float8.c Standard pgindent run for 8.1. 2005-10-15 02:49:52 +00:00
btree_gist.c Magic blocks don't do us any good unless we use 'em ... so install one 2006-05-30 22:12:16 +00:00
btree_gist.h Add #include code to prevent multiple inclusion. 2006-07-10 21:03:58 +00:00
btree_gist.sql.in Support functions for index opclasses should be immutable. 2007-09-29 23:24:39 +00:00
btree_inet.c Changes 2006-06-28 12:00:14 +00:00
btree_int2.c Standard pgindent run for 8.1. 2005-10-15 02:49:52 +00:00
btree_int4.c Standard pgindent run for 8.1. 2005-10-15 02:49:52 +00:00
btree_int8.c Standard pgindent run for 8.1. 2005-10-15 02:49:52 +00:00
btree_interval.c Adjust /contrib for new include file contents. 2006-07-13 16:57:31 +00:00
btree_macaddr.c Standard pgindent run for 8.1. 2005-10-15 02:49:52 +00:00
btree_numeric.c Fix a passel of recently-committed violations of the rule 'thou shalt 2006-07-14 05:28:29 +00:00
btree_oid.c Standard pgindent run for 8.1. 2005-10-15 02:49:52 +00:00
btree_text.c Changes 2006-06-28 12:00:14 +00:00
btree_time.c Adjust /contrib for new include file contents. 2006-07-13 16:57:31 +00:00
btree_ts.c Changes 2006-06-28 12:00:14 +00:00
btree_utils_num.c Changes 2006-06-28 12:00:14 +00:00
btree_utils_num.h Fix a passel of recently-committed violations of the rule 'thou shalt 2006-07-14 05:28:29 +00:00
btree_utils_var.c Replace direct assignments to VARATT_SIZEP(x) with SET_VARSIZE(x, len). 2007-02-27 23:48:10 +00:00
btree_utils_var.h Fix a passel of recently-committed violations of the rule 'thou shalt 2006-07-14 05:28:29 +00:00
Makefile Fix PGXS conventions so that extensions can be built against Postgres 2007-06-26 22:05:04 +00:00
README.btree_gist
uninstall_btree_gist.sql Fix a number of syntax errors in contrib modules' uninstall scripts. 2006-03-13 18:04:58 +00:00

This is a B-Tree implementation using GiST that supports the int2, int4,
int8, float4, float8 timestamp with/without time zone, time
with/without time zone, date, interval, oid, money, macaddr, char,
varchar/text, bytea, numeric, bit, varbit and inet/cidr types.

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.

NEWS:

     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
     
NOTICE:
     This version will only work with PostgreSQL version 7.4 and above
     because of changes in the system catalogs and the function call
     interface.
     
     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) );


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;