Fix regex, LIKE, and some other second-rank text-manipulation functions
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 21 Sep 2007 22:52:52 +0000 (22:52 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 21 Sep 2007 22:52:52 +0000 (22:52 +0000)
commitc01ecc23abef7def9e7f427ec875112034847880
treee9ad4ce05a67b36908ecf1f6a1f5fb5954c63ccc
parent4d54e58b34eb3c9aff41e2b32ebd5c8bc964399e
Fix regex, LIKE, and some other second-rank text-manipulation functions
to not cause needless copying of text datums that have 1-byte headers.
Greg Stark, in response to performance gripe from Guillaume Smet and
ITAGAKI Takahiro.
src/backend/access/hash/hashfunc.c
src/backend/utils/adt/like.c
src/backend/utils/adt/like_match.c
src/backend/utils/adt/oracle_compat.c
src/backend/utils/adt/regexp.c
src/include/fmgr.h