diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2007-06-02 02:03:42 +0000 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2007-06-02 02:03:42 +0000 |
commit | 15f8202c204386b7a3b95b00976b4c1e7ba062c1 (patch) | |
tree | b6d3e83136c1d2dbd4b3b804678b630b585d9030 /src/backend/utils/misc/tzparser.c | |
parent | 964ec46cfe95028ca166dd5579e07b22c7434a91 (diff) | |
download | postgresql-15f8202c204386b7a3b95b00976b4c1e7ba062c1.tar.gz postgresql-15f8202c204386b7a3b95b00976b4c1e7ba062c1.zip |
Improve efficiency of LIKE/ILIKE code, especially for multi-byte charsets,
and most especially for UTF8. Remove unnecessary special cases for bytea
processing and single-byte charset ILIKE. a ILIKE b is now processed as
lower(a) LIKE lower(b) in all cases. The code is now considerably simpler. All
comparisons are now performed byte-wise, and the text and pattern are also
advanced byte-wise where it is safe to do so - essentially where a wildcard is
not being matched.
Andrew Dunstan, from an original patch by ITAGAKI Takahiro, with ideas from
Tom Lane and Mark Mielke.
Diffstat (limited to 'src/backend/utils/misc/tzparser.c')
0 files changed, 0 insertions, 0 deletions