postgresql/src/backend
Tom Lane f54f9ea1c6 Change regexp engine's ccondissect/crevdissect routines to perform DFA
matching before recursing instead of after.  The DFA match eliminates
unworkable midpoint choices a lot faster than the recursive check, in most
cases, so doing it first can speed things up; particularly in pathological
cases such as recently exhibited by Michael Glaesemann.

In addition, apply some cosmetic changes that were applied upstream (in the
Tcl project) at the same time, in order to sync with upstream version 1.15
of regexec.c.

Upstream apparently intends to backpatch this, so I will too.  The
pathological behavior could be unpleasant if encountered in the field,
which seems to justify any risk of introducing new bugs.

Tom Lane, reviewed by Donal K. Fellows of Tcl project
2010-02-01 02:45:55 +00:00
..
access Fix assorted core dumps and Assert failures that could occur during 2010-01-24 21:49:58 +00:00
bootstrap Fix bootstrap.c so that database startup process and bgwriter properly release 2006-06-08 23:55:54 +00:00
catalog Prevent indirect security attacks via changing session-local state within 2009-12-09 21:58:44 +00:00
commands Fix assorted core dumps and Assert failures that could occur during 2010-01-24 21:49:58 +00:00
executor Previous fix for temporary file management broke returning a set from 2009-12-29 17:41:35 +00:00
lib Standard pgindent run for 8.1. 2005-10-15 02:49:52 +00:00
libpq Reject certificates with embedded NULLs in the commonName field. This stops 2009-12-09 06:37:17 +00:00
main Set progname early in the postmaster/postgres binary, rather than doing 2006-02-01 00:32:06 +00:00
nodes Fix outfuncs.c to dump A_Const nodes representing NULLs correctly. This has 2007-07-17 01:22:03 +00:00
optimizer Fix the handling of sub-SELECTs appearing in the arguments of an outer-level 2009-04-25 16:45:19 +00:00
parser Defend against JOINs having more than 32K columns altogether. We cannot 2008-04-05 01:58:42 +00:00
po Translation updates 2009-12-08 21:58:30 +00:00
port Remove HELIOS Software GmbH name and copyright from AIX dynloader files, 2009-04-25 15:53:42 +00:00
postmaster Ignore attempts to set "application_name" in the connection startup packet. 2009-12-02 17:41:46 +00:00
regex Change regexp engine's ccondissect/crevdissect routines to perform DFA 2010-02-01 02:45:55 +00:00
rewrite Fix more problems with rewriter failing to set Query.hasSubLinks when inserting 2008-09-24 16:53:07 +00:00
storage Fix bug in temporary file management with subtransactions. A cursor opened 2009-12-03 11:04:03 +00:00
tcop Avoid performing encoding conversion on command tag strings during EndCommand. 2010-01-30 20:10:16 +00:00
utils Fix assorted core dumps and Assert failures that could occur during 2010-01-24 21:49:58 +00:00
Makefile Add an ifneq to avoid make warning on AIX --- there is a separate rule 2005-10-27 20:45:29 +00:00
nls.mk Install a more robust solution for the problem of infinite error-processing 2008-10-27 19:37:42 +00:00