postgresql/src
Tom Lane 5b860028f1 Improve the performance of LIKE/regex estimation in non-C locales, by making
make_greater_string() try harder to generate a string that's actually greater
than its input string.  Before we just assumed that making a string that was
memcmp-greater was enough, but it is easy to generate examples where this is
not so when the locale is not C.  Instead, loop until the relevant comparison
function agrees that the generated string is greater than the input.

Unfortunately this is probably not enough to guarantee that the generated
string is greater than all extensions of the input, so we cannot relax the
restriction to C locale for the LIKE/regex index optimization.  But it should
at least improve the odds of getting a useful selectivity estimate in
prefix_selectivity().  Per example from Guillaume Smet.

Backpatch to 8.1, mainly because that's what the complainant is using...
2007-11-07 22:37:33 +00:00
..
backend Improve the performance of LIKE/regex estimation in non-C locales, by making 2007-11-07 22:37:33 +00:00
bin Fix a couple of issues with pg_dump's handling of inheritance child tables 2007-10-28 19:08:08 +00:00
include Improve the performance of LIKE/regex estimation in non-C locales, by making 2007-11-07 22:37:33 +00:00
interfaces Fixed two parser bugs. 2007-11-06 08:32:34 +00:00
makefiles Add $(CFLAGS) to the simplified build rule for .so libraries on Darwin. 2006-11-28 05:45:43 +00:00
pl Back-patch some plpython patches previously made only in HEAD: changes of 2007-10-15 15:53:12 +00:00
port Stamp releases 8.2.5, 8.1.10, 8.0.14, 7.4.18, 7.3.20. 2007-09-11 17:37:30 +00:00
template Make --with-ldap build on Unixware, per Olivier Prenant. 2006-12-14 21:50:07 +00:00
test Rewrite make_outerjoininfo's construction of min_lefthand and min_righthand 2007-08-31 01:44:14 +00:00
timezone Update timezone data files to release 2007h of the zic database. 2007-10-04 19:07:06 +00:00
tools More MSVC build support from Magnus. 2006-11-29 19:49:31 +00:00
tutorial Fix some misuses of strncat(). 2006-09-27 16:19:42 +00:00
bcc32.mak Fix bcc32.mak to create and remove pg_config_os.h properly. Apparently 2006-10-06 18:53:53 +00:00
DEVELOPERS Testing commit stuff 2006-07-10 15:50:02 +00:00
Makefile Remove dllinit.c; it was only needed for long-obsolete Cygwin versions, 2006-06-22 23:50:35 +00:00
Makefile.global.in On Windows, we know the backend stack size limit because we have to 2006-10-08 17:15:34 +00:00
Makefile.shlib Fix shared library creation to work properly on AIX. Albe Laurenz 2006-09-19 15:36:08 +00:00
nls-global.mk When merging PO files, take into consideration translations in other PO 2006-04-05 13:40:15 +00:00
win32.mak Fix win32.mak for config cleanup. 2006-08-08 22:44:05 +00:00