CVS log for pgsql/src/backend/regex/regexec.c
Up to [PostgreSQL CVS Repository] / pgsql / src / backend / regex
Request diff between arbitrary revisions - Display revisions graphically
Keyword substitution: kv
Default branch: MAIN
Revision 1.29: download - view: text, markup, annotated - select for diffs
Mon Aug 2 02:29:39 2010 UTC (15 years, 1 month ago) by tgl
Branches: MAIN
CVS tags: REL9_1_ALPHA1,
HEAD
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +2 -2
lines
Tweak a couple of macros in the regex code to suppress compiler warnings
from "clang". The VERR changes make an assignment unconditional, which is
probably easier to read/understand anyway, and one can hardly argue that
it's worth shaving cycles off the case of reporting another error when
one has already been detected. The INSIST change limits where that macro
can be used, but not in a way that creates a problem for any existing call.
Revision 1.23.4.1: download - view: text, markup, annotated - select for diffs
Mon Feb 1 02:46:08 2010 UTC (15 years, 7 months ago) by tgl
Branches: REL7_4_STABLE
CVS tags: REL7_4_29,
REL7_4_28
Diff to: previous 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23: +66 -50
lines
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
Revision 1.24.4.1: download - view: text, markup, annotated - select for diffs
Mon Feb 1 02:46:01 2010 UTC (15 years, 7 months ago) by tgl
Branches: REL8_0_STABLE
CVS tags: REL8_0_25,
REL8_0_24
Diff to: previous 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24: +66 -50
lines
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
Revision 1.27.2.1: download - view: text, markup, annotated - select for diffs
Mon Feb 1 02:45:55 2010 UTC (15 years, 7 months ago) by tgl
Branches: REL8_1_STABLE
CVS tags: REL8_1_21,
REL8_1_20
Diff to: previous 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27: +66 -50
lines
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
Revision 1.27.4.1: download - view: text, markup, annotated - select for diffs
Mon Feb 1 02:45:46 2010 UTC (15 years, 7 months ago) by tgl
Branches: REL8_2_STABLE
CVS tags: REL8_2_17,
REL8_2_16
Diff to: previous 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27: +66 -50
lines
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
Revision 1.27.6.1: download - view: text, markup, annotated - select for diffs
Mon Feb 1 02:45:41 2010 UTC (15 years, 7 months ago) by tgl
Branches: REL8_3_STABLE
CVS tags: REL8_3_11,
REL8_3_10
Diff to: previous 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27: +66 -50
lines
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
Revision 1.27.8.1: download - view: text, markup, annotated - select for diffs
Mon Feb 1 02:45:35 2010 UTC (15 years, 7 months ago) by tgl
Branches: REL8_4_STABLE
CVS tags: REL8_4_4,
REL8_4_3
Diff to: previous 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27: +66 -50
lines
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
Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Feb 1 02:45:29 2010 UTC (15 years, 7 months ago) by tgl
Branches: MAIN
CVS tags: REL9_0_STABLE,
REL9_0_RC1,
REL9_0_BETA4,
REL9_0_BETA3,
REL9_0_BETA2,
REL9_0_BETA1,
REL9_0_ALPHA5_BRANCH,
REL9_0_ALPHA5,
REL9_0_ALPHA4_BRANCH,
REL9_0_ALPHA4,
REL9_0_0
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +66 -50
lines
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
Revision 1.27: download - view: text, markup, annotated - select for diffs
Sat Oct 15 02:49:24 2005 UTC (19 years, 10 months ago) by momjian
Branches: MAIN
CVS tags: REL8_5_ALPHA3_BRANCH,
REL8_5_ALPHA3,
REL8_5_ALPHA2_BRANCH,
REL8_5_ALPHA2,
REL8_5_ALPHA1_BRANCH,
REL8_5_ALPHA1,
REL8_4_RC2,
REL8_4_RC1,
REL8_4_BETA2,
REL8_4_BETA1,
REL8_4_2,
REL8_4_1,
REL8_4_0,
REL8_3_RC2,
REL8_3_RC1,
REL8_3_BETA4,
REL8_3_BETA3,
REL8_3_BETA2,
REL8_3_BETA1,
REL8_3_9,
REL8_3_8,
REL8_3_7,
REL8_3_6,
REL8_3_5,
REL8_3_4,
REL8_3_3,
REL8_3_2,
REL8_3_1,
REL8_3_0,
REL8_2_RC1,
REL8_2_BETA3,
REL8_2_BETA2,
REL8_2_BETA1,
REL8_2_9,
REL8_2_8,
REL8_2_7,
REL8_2_6,
REL8_2_5,
REL8_2_4,
REL8_2_3,
REL8_2_2,
REL8_2_15,
REL8_2_14,
REL8_2_13,
REL8_2_12,
REL8_2_11,
REL8_2_10,
REL8_2_1,
REL8_2_0,
REL8_1_9,
REL8_1_8,
REL8_1_7,
REL8_1_6,
REL8_1_5,
REL8_1_4,
REL8_1_3,
REL8_1_2,
REL8_1_19,
REL8_1_18,
REL8_1_17,
REL8_1_16,
REL8_1_15,
REL8_1_14,
REL8_1_13,
REL8_1_12,
REL8_1_11,
REL8_1_10,
REL8_1_1,
REL8_1_0RC1,
REL8_1_0BETA4,
REL8_1_0
Branch point for: REL8_4_STABLE,
REL8_3_STABLE,
REL8_2_STABLE,
REL8_1_STABLE
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +6 -11
lines
Standard pgindent run for 8.1.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Sep 24 22:54:38 2005 UTC (19 years, 11 months ago) by tgl
Branches: MAIN
CVS tags: REL8_1_0BETA3
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +2 -1
lines
Clean up possibly-uninitialized-variable warnings reported by gcc 4.x.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Sun Jul 10 04:54:30 2005 UTC (20 years, 2 months ago) by momjian
Branches: MAIN
CVS tags: REL8_1_0BETA2,
REL8_1_0BETA1
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +7 -3
lines
I made the patch that implements regexp_replace again.
The specification of this function is as follows.
regexp_replace(source text, pattern text, replacement text, [flags
text])
returns text
Replace string that matches to regular expression in source text to
replacement text.
- pattern is regular expression pattern.
- replacement is replace string that can use '\1'-'\9', and '\&'.
'\1'-'\9': back reference to the n'th subexpression.
'\&' : entire matched string.
- flags can use the following values:
g: global (replace all)
i: ignore case
When the flags is not specified, case sensitive, replace the first
instance only.
Atsushi Ogawa
Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Nov 29 19:51:55 2003 UTC (21 years, 9 months ago) by pgsql
Branches: MAIN
CVS tags: REL8_0_9,
REL8_0_8,
REL8_0_7,
REL8_0_6,
REL8_0_5,
REL8_0_4,
REL8_0_3,
REL8_0_23,
REL8_0_22,
REL8_0_21,
REL8_0_20,
REL8_0_2,
REL8_0_19,
REL8_0_18,
REL8_0_17,
REL8_0_16,
REL8_0_15,
REL8_0_14,
REL8_0_13,
REL8_0_12,
REL8_0_11,
REL8_0_10,
REL8_0_1,
REL8_0_0RC5,
REL8_0_0RC4,
REL8_0_0RC3,
REL8_0_0RC2,
REL8_0_0RC1,
REL8_0_0BETA5,
REL8_0_0BETA4,
REL8_0_0BETA3,
REL8_0_0BETA2,
REL8_0_0BETA1,
REL8_0_0
Branch point for: REL8_0_STABLE
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +1 -1
lines
$Header: -> $PostgreSQL Changes ...
Revision 1.23: download - view: text, markup, annotated - select for diffs
Fri Aug 8 21:41:56 2003 UTC (22 years, 1 month ago) by momjian
Branches: MAIN
CVS tags: WIN32_DEV,
REL7_4_RC2,
REL7_4_RC1,
REL7_4_BETA5,
REL7_4_BETA4,
REL7_4_BETA3,
REL7_4_BETA2,
REL7_4_9,
REL7_4_8,
REL7_4_7,
REL7_4_6,
REL7_4_5,
REL7_4_4,
REL7_4_3,
REL7_4_27,
REL7_4_26,
REL7_4_25,
REL7_4_24,
REL7_4_23,
REL7_4_22,
REL7_4_21,
REL7_4_20,
REL7_4_2,
REL7_4_19,
REL7_4_18,
REL7_4_17,
REL7_4_16,
REL7_4_15,
REL7_4_14,
REL7_4_13,
REL7_4_12,
REL7_4_11,
REL7_4_10,
REL7_4_1,
REL7_4
Branch point for: REL7_4_STABLE
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +22 -22
lines
Another pgindent run with updated typedefs.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Mon Aug 4 00:43:21 2003 UTC (22 years, 1 month ago) by momjian
Branches: MAIN
CVS tags: REL7_4_BETA1
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +423 -357
lines
pgindent run.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Wed Feb 5 17:41:33 2003 UTC (22 years, 7 months ago) by tgl
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +990 -169
lines
Replace regular expression package with Henry Spencer's latest version
(extracted from Tcl 8.4.1 release, as Henry still hasn't got round to
making it a separate library). This solves a performance problem for
multibyte, as well as upgrading our regexp support to match recent Tcl
and nearly match recent Perl.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Nov 8 20:23:56 2002 UTC (22 years, 10 months ago) by momjian
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +0 -1
lines
This patch removes a bunch of superfluous #include directives: if
postgres.h or c.h includes a system header (such as stdio.h or
stdlib.h), there's no need to specifically include it in any of the .c
files in the backend.
Neil Conway
Revision 1.19: download - view: text, markup, annotated - select for diffs
Thu Aug 29 07:22:23 2002 UTC (23 years ago) by ishii
Branches: MAIN
CVS tags: REL7_3_STABLE,
REL7_3_9,
REL7_3_8,
REL7_3_7,
REL7_3_6,
REL7_3_5,
REL7_3_4,
REL7_3_21,
REL7_3_20,
REL7_3_2,
REL7_3_19,
REL7_3_18,
REL7_3_17,
REL7_3_16,
REL7_3_15,
REL7_3_14,
REL7_3_13,
REL7_3_12,
REL7_3_11,
REL7_3_10
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +0 -11
lines
Remove #ifdef MULTIBYTE per hackers list discussion.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue Jun 11 15:41:37 2002 UTC (23 years, 3 months ago) by thomas
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -2
lines
Implement SQL99 OVERLAY(). Allows substitution of a substring in a string.
Implement SQL99 SIMILAR TO as a synonym for our existing operator "~".
Implement SQL99 regular expression SUBSTRING(string FROM pat FOR escape).
Extend the definition to make the FOR clause optional.
Define textregexsubstr() to actually implement this feature.
Update the regression test to include these new string features.
All tests pass.
Rename the regular expression support routines from "pg95_xxx" to "pg_xxx".
Define CREATE CHARACTER SET in the parser per SQL99. No implementation yet.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Thu Oct 25 05:49:41 2001 UTC (23 years, 10 months ago) by momjian
Branches: MAIN
CVS tags: REL7_2_STABLE,
REL7_2_RC2,
REL7_2_RC1,
REL7_2_BETA5,
REL7_2_BETA4,
REL7_2_BETA3,
REL7_2_BETA2,
REL7_2_BETA1,
REL7_2_8,
REL7_2_7,
REL7_2_6,
REL7_2_5,
REL7_2_4,
REL7_2_3,
REL7_2
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +1 -2
lines
pgindent run on all C files. Java run to follow. initdb/regression
tests pass.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Oct 25 01:29:37 2001 UTC (23 years, 10 months ago) by momjian
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +13 -4
lines
Add do { ... } while (0) to more bad macros.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Mar 22 03:59:43 2001 UTC (24 years, 5 months ago) by momjian
Branches: MAIN
CVS tags: REL7_1_STABLE,
REL7_1_2,
REL7_1
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +1 -1
lines
pgindent run. Make it all clean.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Tue Feb 13 00:02:36 2001 UTC (24 years, 7 months ago) by tgl
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +15 -36
lines
Clean up portability problems in regexp package: change all routine
definitions from K&R to ANSI C style, and fix broken assumption that
int and long are the same datatype. This repairs problems observed
on Alpha with regexps having between 32 and 63 states.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Wed Jan 19 02:58:53 2000 UTC (25 years, 7 months ago) by petere
Branches: MAIN
CVS tags: REL7_1_BETA3,
REL7_1_BETA2,
REL7_1_BETA,
REL7_0_PATCHES,
REL7_0
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -0
lines
Removed MBFLAGS from makefiles since it's now done in include/config.h.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Thu Jul 15 23:03:24 1999 UTC (26 years, 2 months ago) by momjian
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -3
lines
Change #include's to use <> and "" as appropriate.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Sep 1 04:31:27 1998 UTC (27 years ago) by momjian
Branches: MAIN
CVS tags: REL6_5_PATCHES,
REL6_5,
REL6_4
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +14 -14
lines
OK, folks, here is the pgindent output.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Sep 1 03:24:51 1998 UTC (27 years ago) by momjian
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +5 -5
lines
Renaming cleanup, no pgindent yet.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Jul 18 18:34:07 1998 UTC (27 years, 1 month ago) by momjian
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -2
lines
Add auto-size to screen to \d? commands. Use UNION to show all
\d? results in one query. Add \d? field search feature. Rename MB
to MULTIBYTE.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Mar 15 07:38:35 1998 UTC (27 years, 6 months ago) by scrappy
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +23 -2
lines
From: t-ishii@sra.co.jp
Included are patches intended for allowing PostgreSQL to handle
multi-byte charachter sets such as EUC(Extende Unix Code), Unicode and
Mule internal code. With the MB patch you can use multi-byte character
sets in regexp and LIKE. The encoding system chosen is determined at
the compile time.
To enable the MB extension, you need to define a variable "MB" in
Makefile.global or in Makefile.custom. For further information please
take a look at README.mb under doc directory.
(Note that unlike "jp patch" I do not use modified GNU regexp any
more. I changed Henry Spencer's regexp coming with PostgreSQL.)
Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed Feb 11 19:11:37 1998 UTC (27 years, 7 months ago) by momjian
Branches: MAIN
CVS tags: release-6-3
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +1 -1
lines
Goodbye register keyword. Compiler knows better.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Sep 8 02:28:08 1997 UTC (28 years ago) by momjian
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +7 -7
lines
Another PGINDENT run that changes variable indenting and case label indenting. Also static variable indenting.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Sep 7 04:47:58 1997 UTC (28 years ago) by momjian
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +79 -77
lines
Massive commit to run PGINDENT on all *.c and *.h files.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Fri Nov 8 05:58:01 1996 UTC (28 years, 10 months ago) by momjian
Branches: MAIN
CVS tags: REL2_0B,
REL2_0
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +1 -0
lines
Compile and warning cleanup
Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Sep 20 08:34:36 1996 UTC (28 years, 11 months ago) by scrappy
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -3
lines
Various patches from Bryan that *should* clean up the compile problems
ppl are seeing with v2.0
Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Aug 28 01:55:35 1996 UTC (29 years ago) by scrappy
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -2
lines
Moved the include files to src/include/regex
Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Tue Jul 9 06:21:50 1996 UTC (29 years, 2 months ago) by scrappy
Branches: PG95_DIST
CVS tags: Release_2_0_0,
Release_2_0,
Release_1_0_3,
Release_1_0_2,
PG95-1_01
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0
lines
Postgres95 1.01 Distribution - Virgin Sources
Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Jul 9 06:21:50 1996 UTC (29 years, 2 months ago) by scrappy
Branches: MAIN
Initial revision
PostgreSQL CVSweb <webmaster@postgresql.org>