Skip to content
Snippets Groups Projects
  1. Feb 01, 2010
    • Tom Lane's avatar
      Change regexp engine's ccondissect/crevdissect routines to perform DFA · ee3a81f0
      Tom Lane authored
      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
      ee3a81f0
  2. Oct 15, 2005
  3. Sep 25, 2005
  4. Jul 10, 2005
    • Bruce Momjian's avatar
      I made the patch that implements regexp_replace again. · 75a64eeb
      Bruce Momjian authored
      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
      75a64eeb
  5. Nov 29, 2003
    • PostgreSQL Daemon's avatar
      · 969685ad
      PostgreSQL Daemon authored
      $Header: -> $PostgreSQL Changes ...
      969685ad
  6. Aug 08, 2003
  7. Aug 04, 2003
  8. Feb 05, 2003
  9. Nov 08, 2002
  10. Aug 29, 2002
  11. Jun 11, 2002
    • Thomas G. Lockhart's avatar
      Implement SQL99 OVERLAY(). Allows substitution of a substring in a string. · ea01a451
      Thomas G. Lockhart authored
      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.
      ea01a451
  12. Oct 25, 2001
  13. Mar 22, 2001
  14. Feb 13, 2001
  15. Jan 19, 2000
  16. Jul 16, 1999
  17. Sep 01, 1998
  18. Jul 18, 1998
  19. Mar 15, 1998
    • Marc G. Fournier's avatar
      From: t-ishii@sra.co.jp · 661ecf3c
      Marc G. Fournier authored
      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.)
      661ecf3c
  20. Feb 11, 1998
  21. Sep 08, 1997
  22. Sep 07, 1997
  23. Nov 08, 1996
  24. Sep 20, 1996
  25. Aug 28, 1996
  26. Jul 09, 1996
Loading