Fix regex, LIKE, and some other second-rank text-manipulation functions
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/hash/hashfunc.c | modified | +7 −7 |
| src/backend/utils/adt/like.c | modified | +42 −41 |
| src/backend/utils/adt/like_match.c | modified | +7 −7 |
| src/backend/utils/adt/oracle_compat.c | modified | +87 −73 |
| src/backend/utils/adt/regexp.c | modified | +66 −63 |
| src/include/fmgr.h | modified | +3 −1 |