postgresql/src/include
Tom Lane 2de946be6a 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:24 +00:00
..
access Use "alternative" instead of "alternate" where it is clearer. 2007-11-07 12:24:24 +00:00
bootstrap Create a new dedicated Postgres process, "wal writer", which exists to write 2007-07-24 04:54:09 +00:00
catalog Remove the aggregate form of ts_rewrite(), since it doesn't work as desired 2007-10-24 02:24:49 +00:00
commands Simplify the syntax of CREATE/ALTER TEXT SEARCH DICTIONARY by treating the 2007-08-22 01:39:46 +00:00
executor Arrange to cache a ResultRelInfo in the executor's EState for relations that 2007-08-15 21:39:50 +00:00
lib Add resetStringInfo(), which clears the content of a StringInfo, and 2007-03-03 19:32:55 +00:00
libpq Move session_start out of MyProcPort stucture and make it a global called MyStartTime, 2007-08-02 23:39:45 +00:00
mb Fix pg_wchar_table[] to match revised ordering of the encoding ID enum. 2007-10-15 22:46:27 +00:00
nodes Disallow scrolling of FOR UPDATE/FOR SHARE cursors, so as to avoid problems 2007-10-24 23:27:08 +00:00
optimizer Fix the plan-invalidation mechanism to treat regclass constants that refer to 2007-10-11 18:05:27 +00:00
parser Remove the hack in the grammar that "optimized away" DEFAULT NULL clauses. 2007-10-29 19:40:40 +00:00
port New versions of mingw have gettimeofday(), so add an autoconf test 2007-10-29 11:25:42 +00:00
postmaster Simplify and rename some GUC variables, per various recent discussions: 2007-09-24 03:12:23 +00:00
regex Adjust regcustom.h so that all those assert() calls in the regex package 2007-10-06 16:01:51 +00:00
rewrite Fix a couple of misbehaviors rooted in the fact that the default creation 2007-08-27 03:36:08 +00:00
snowball Tsearch2 functionality migrates to core. The bulk of this work is by 2007-08-21 01:11:32 +00:00
storage Allow an autovacuum worker to be interrupted automatically when it is found 2007-10-26 20:45:10 +00:00
tcop Rename DLLIMPORT macro to PGDLLIMPORT to avoid conflict with 2007-07-25 12:22:54 +00:00
tsearch Remove the aggregate form of ts_rewrite(), since it doesn't work as desired 2007-10-24 02:24:49 +00:00
utils Improve the performance of LIKE/regex estimation in non-C locales, by making 2007-11-07 22:37:24 +00:00
c.h Implement lazy XID allocation: transactions that do not modify any database 2007-09-05 18:10:48 +00:00
fmgr.h Fix typos in two comments. Spotted by Brendan Jurd 2007-09-27 21:01:59 +00:00
funcapi.h Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
getaddrinfo.h Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
getopt_long.h Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
Makefile make install is supposed to install everything under src/include/, 2007-10-14 17:07:51 +00:00
miscadmin.h Move session_start out of MyProcPort stucture and make it a global called MyStartTime, 2007-08-02 23:39:45 +00:00
pg_config.h.in Document that configure option only affects contrib: 2007-11-05 17:43:20 +00:00
pg_config.h.win32 Stamp 8.3beta2. 2007-10-27 00:22:42 +00:00
pg_config_manual.h Arrange for large sequential scans to synchronize with each other, so that 2007-06-08 18:23:53 +00:00
pg_trace.h pgindent run for 8.2. 2006-10-04 00:30:14 +00:00
pgstat.h Just-in-time background writing strategy. This code avoids re-scanning 2007-09-25 20:03:38 +00:00
pgtime.h Fix crash caused by log_timezone patch if we attempt to emit any elog messages 2007-08-04 19:29:25 +00:00
port.h New versions of mingw have gettimeofday(), so add an autoconf test 2007-10-29 11:25:42 +00:00
postgres.h Avoid assuming that struct varattrib_pointer doesn't get padded by the 2007-10-01 16:25:56 +00:00
postgres_ext.h Move NAMEDATALEN definition from postgres_ext.h to pg_config_manual.h. It 2007-02-06 09:16:08 +00:00
postgres_fe.h Define the FRONTEND symbol in postgres_fe.h, which allows us to eliminate 2007-09-27 19:53:44 +00:00
rusagestub.h Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00