pgsql: Rewrite LIKE's %-followed-by-_ optimization so it really works - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Rewrite LIKE's %-followed-by-_ optimization so it really works
Date
Msg-id 20100528173536.2B2E47541D2@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
Rewrite LIKE's %-followed-by-_ optimization so it really works (this time
for sure ;-)).  It now also optimizes more cases, such as %_%_.  Improve
comments too.  Per bug #5478.

In passing, also rename the TCHAR macro to GETCHAR, because pgindent is
messing with the formatting of the former (apparently it now thinks TCHAR
is a typedef name).

Back-patch to 8.3, where the bug was introduced.

Tags:
----
REL8_3_STABLE

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        like_match.c (r1.20.2.3 -> r1.20.2.4)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/like_match.c?r1=1.20.2.3&r2=1.20.2.4)
    pgsql/src/test/regress/expected:
        strings.out (r1.33.2.1 -> r1.33.2.2)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/expected/strings.out?r1=1.33.2.1&r2=1.33.2.2)
    pgsql/src/test/regress/sql:
        strings.sql (r1.22.2.1 -> r1.22.2.2)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/sql/strings.sql?r1=1.22.2.1&r2=1.22.2.2)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Rewrite LIKE's %-followed-by-_ optimization so it really works
Next
From: momjian@postgresql.org (Bruce Momjian)
Date:
Subject: pgsql: Document use of VPATH builds.