You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Tom Lane
9221f9d485
Make contrib/btree_gist's GiST penalty function a bit saner.
...
The previous coding supposed that the first differing bytes in two varlena
datums must have the same sign difference as their overall comparison
result. This is obviously bogus for text strings in non-C locales, and
probably wrong for numeric, and even for bytea I think it was wrong on
machines where char is signed. When the assumption failed, the function
could deliver a zero or negative penalty in situations where such a result
is quite ridiculous, leading the core GiST code to make very bad page-split
decisions.
To fix, take the absolute values of the byte-level differences. Also,
switch the code to using unsigned char not just char, so that the behavior
will be consistent whether char is signed or not.
Per investigation of a trouble report from Tomas Vondra. Back-patch to all
supported branches.
13 years ago
..
data
Add missing newlines at end of files
15 years ago
expected
Reduce messages about implicit indexes and sequences to DEBUG1.
13 years ago
sql
Add KNNGIST support to contrib/btree_gist.
15 years ago
.gitignore
Support "make check" in contrib
14 years ago
Makefile
Add -lm to SHLIB_LINK for contrib/btree_gist.
15 years ago
btree_bit.c
Add postgres.h to *.c files for pg_upgrade, ltree, and btree_gist, and
14 years ago
btree_bytea.c
Add postgres.h to *.c files for pg_upgrade, ltree, and btree_gist, and
14 years ago
btree_cash.c
Remove many -Wcast-qual warnings
14 years ago
btree_date.c
Remove many -Wcast-qual warnings
14 years ago
btree_float4.c
Remove many -Wcast-qual warnings
14 years ago
btree_float8.c
Remove many -Wcast-qual warnings
14 years ago
btree_gist--1.0.sql
Throw a useful error message if an extension script file is fed to psql.
14 years ago
btree_gist--unpackaged--1.0.sql
Throw a useful error message if an extension script file is fed to psql.
14 years ago
btree_gist.c
Add postgres.h to *.c files for pg_upgrade, ltree, and btree_gist, and
14 years ago
btree_gist.control
Convert contrib modules to use the extension facility.
15 years ago
btree_gist.h
Remove unnecessary #include references, per pgrminclude script.
14 years ago
btree_inet.c
Remove many -Wcast-qual warnings
14 years ago
btree_int2.c
Replace int2/int4 in C code with int16/int32
13 years ago
btree_int4.c
Replace int2/int4 in C code with int16/int32
13 years ago
btree_int8.c
Remove many -Wcast-qual warnings
14 years ago
btree_interval.c
Remove many -Wcast-qual warnings
14 years ago
btree_macaddr.c
Remove many -Wcast-qual warnings
14 years ago
btree_numeric.c
Add postgres.h to *.c files for pg_upgrade, ltree, and btree_gist, and
14 years ago
btree_oid.c
Remove many -Wcast-qual warnings
14 years ago
btree_text.c
Add postgres.h to *.c files for pg_upgrade, ltree, and btree_gist, and
14 years ago
btree_time.c
Remove many -Wcast-qual warnings
14 years ago
btree_ts.c
Remove many -Wcast-qual warnings
14 years ago
btree_utils_num.c
Move Timestamp/Interval typedefs and basic macros into datatype/timestamp.h.
14 years ago
btree_utils_num.h
Remove unnecessary #include references, per pgrminclude script.
14 years ago
btree_utils_var.c
Make contrib/btree_gist's GiST penalty function a bit saner.
13 years ago
btree_utils_var.h
Remove unnecessary #include references, per pgrminclude script.
14 years ago