mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Push index operator lossiness determination down to GIST/GIN opclass
"consistent" functions, and remove pg_amop.opreqcheck, as per recent discussion. The main immediate benefit of this is that we no longer need 8.3's ugly hack of requiring @@@ rather than @@ to test weight-using tsquery searches on GIN indexes. In future it should be possible to optimize some other queries better than is done now, by detecting at runtime whether the index match is exact or not. Tom Lane, after an idea of Heikki's, and with some help from Teodor.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* $PostgreSQL: pgsql/contrib/intarray/uninstall__int.sql,v 1.8 2007/11/13 04:24:28 momjian Exp $ */
|
||||
/* $PostgreSQL: pgsql/contrib/intarray/uninstall__int.sql,v 1.9 2008/04/14 17:05:32 tgl Exp $ */
|
||||
|
||||
-- Adjust this setting to control where the objects get created.
|
||||
SET search_path = public;
|
||||
@ -7,7 +7,7 @@ DROP OPERATOR CLASS gin__int_ops USING gin;
|
||||
|
||||
DROP FUNCTION ginint4_queryextract(internal, internal, int2);
|
||||
|
||||
DROP FUNCTION ginint4_consistent(internal, int2, internal);
|
||||
DROP FUNCTION ginint4_consistent(internal, int2, internal, internal);
|
||||
|
||||
DROP OPERATOR CLASS gist__intbig_ops USING gist;
|
||||
|
||||
@ -23,7 +23,7 @@ DROP FUNCTION g_intbig_decompress(internal);
|
||||
|
||||
DROP FUNCTION g_intbig_compress(internal);
|
||||
|
||||
DROP FUNCTION g_intbig_consistent(internal,internal,int4);
|
||||
DROP FUNCTION g_intbig_consistent(internal,internal,int,oid,internal);
|
||||
|
||||
DROP TYPE intbig_gkey CASCADE;
|
||||
|
||||
@ -41,7 +41,7 @@ DROP FUNCTION g_int_decompress(internal);
|
||||
|
||||
DROP FUNCTION g_int_compress(internal);
|
||||
|
||||
DROP FUNCTION g_int_consistent(internal,_int4,int4);
|
||||
DROP FUNCTION g_int_consistent(internal,_int4,int,oid,internal);
|
||||
|
||||
DROP OPERATOR & (_int4, _int4);
|
||||
|
||||
|
Reference in New Issue
Block a user