mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Changes:
1 intarray: bugfix for int[]-int[] operation 2 intarray: split _int.c to several files (_int.c now is unused) 3 ntarray (gist__intbig_ops opclass): use special type for index storage 4 ltree (gist__ltree_ops opclass), intarray (gist__intbig_ops): optimize GiST's penalty and picksplit interface functions, now use Hemming distance. Teodor Sigaev
This commit is contained in:
@ -1,10 +1,11 @@
|
||||
# $Header: /cvsroot/pgsql/contrib/intarray/Makefile,v 1.8 2001/09/06 10:49:29 petere Exp $
|
||||
# $Header: /cvsroot/pgsql/contrib/intarray/Makefile,v 1.9 2003/06/11 18:44:14 momjian Exp $
|
||||
|
||||
subdir = contrib/intarray
|
||||
top_builddir = ../..
|
||||
include $(top_builddir)/src/Makefile.global
|
||||
|
||||
MODULES = _int
|
||||
MODULE_big = _int
|
||||
OBJS = _int_bool.o _int_gist.o _int_op.o _int_tool.o _intbig_gist.o
|
||||
DATA_built = _int.sql
|
||||
DOCS = README.intarray
|
||||
REGRESS = _int
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -360,7 +360,24 @@ DEFAULT FOR TYPE _int4 USING gist AS
|
||||
-- intbig
|
||||
---------------------------------------------
|
||||
-- define the GiST support methods
|
||||
CREATE FUNCTION g_intbig_consistent(internal,_int4,int4)
|
||||
|
||||
CREATE FUNCTION _intbig_in(cstring)
|
||||
RETURNS intbig_gkey
|
||||
AS 'MODULE_PATHNAME'
|
||||
LANGUAGE 'C' with (isstrict);
|
||||
|
||||
CREATE FUNCTION _intbig_out(intbig_gkey)
|
||||
RETURNS cstring
|
||||
AS 'MODULE_PATHNAME'
|
||||
LANGUAGE 'C' with (isstrict);
|
||||
|
||||
CREATE TYPE intbig_gkey (
|
||||
INTERNALLENGTH = -1,
|
||||
INPUT = _intbig_in,
|
||||
OUTPUT = _intbig_out
|
||||
);
|
||||
|
||||
CREATE FUNCTION g_intbig_consistent(internal,internal,int4)
|
||||
RETURNS bool
|
||||
AS 'MODULE_PATHNAME'
|
||||
LANGUAGE 'C';
|
||||
@ -390,7 +407,7 @@ RETURNS _int4
|
||||
AS 'MODULE_PATHNAME'
|
||||
LANGUAGE 'C';
|
||||
|
||||
CREATE FUNCTION g_intbig_same(_int4, _int4, internal)
|
||||
CREATE FUNCTION g_intbig_same(internal, internal, internal)
|
||||
RETURNS internal
|
||||
AS 'MODULE_PATHNAME'
|
||||
LANGUAGE 'C';
|
||||
@ -405,10 +422,11 @@ AS
|
||||
OPERATOR 7 @ RECHECK,
|
||||
OPERATOR 8 ~ RECHECK,
|
||||
OPERATOR 20 @@ (_int4, query_int) RECHECK,
|
||||
FUNCTION 1 g_intbig_consistent (internal, _int4, int4),
|
||||
FUNCTION 1 g_intbig_consistent (internal, internal, int4),
|
||||
FUNCTION 2 g_intbig_union (bytea, internal),
|
||||
FUNCTION 3 g_intbig_compress (internal),
|
||||
FUNCTION 4 g_intbig_decompress (internal),
|
||||
FUNCTION 5 g_intbig_penalty (internal, internal, internal),
|
||||
FUNCTION 6 g_intbig_picksplit (internal, internal),
|
||||
FUNCTION 7 g_intbig_same (_int4, _int4, internal);
|
||||
FUNCTION 7 g_intbig_same (internal, internal, internal),
|
||||
STORAGE intbig_gkey;
|
||||
|
@ -5,6 +5,8 @@
|
||||
\set ECHO none
|
||||
psql:_int.sql:13: NOTICE: ProcedureCreate: type query_int is not yet defined
|
||||
psql:_int.sql:18: NOTICE: Argument type "query_int" is only a shell
|
||||
psql:_int.sql:369: NOTICE: ProcedureCreate: type intbig_gkey is not yet defined
|
||||
psql:_int.sql:374: NOTICE: Argument type "intbig_gkey" is only a shell
|
||||
SELECT intset(1234);
|
||||
intset
|
||||
--------
|
||||
|
Reference in New Issue
Block a user