Improve implementation of btrim/ltrim/rtrim: provide a special case for
Tom Lane <tgl@sss.pgh.pa.us>
Improve implementation of btrim/ltrim/rtrim: provide a special case for single-byte encodings, and a direct C implementation of the single-argument forms (where spaces are always what gets trimmed). This is in preparation for using rtrim1() as the bpchar-to-text cast operator, but is a useful performance improvement even if we decide not to do that.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/oracle_compat.c | modified | +214 −152 |
| src/include/catalog/catversion.h | modified | +2 −2 |
| src/include/catalog/pg_proc.h | modified | +10 −10 |
| src/include/utils/builtins.h | modified | +4 −1 |