diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-05-23 22:33:23 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-05-23 22:33:23 +0000 |
commit | 11d5c82002a07827cc8896e34ea0d1b6cdb93e49 (patch) | |
tree | 8ec7a8e3ca50712b30384506e6b2dec293ff9a29 /src/include/utils/builtins.h | |
parent | 78d21560660dd1e6cb4850ab2735caaf8527e8b4 (diff) | |
download | postgresql-11d5c82002a07827cc8896e34ea0d1b6cdb93e49.tar.gz postgresql-11d5c82002a07827cc8896e34ea0d1b6cdb93e49.zip |
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.
Diffstat (limited to 'src/include/utils/builtins.h')
-rw-r--r-- | src/include/utils/builtins.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/utils/builtins.h b/src/include/utils/builtins.h index 9620483f2c2..539dfbc9de7 100644 --- a/src/include/utils/builtins.h +++ b/src/include/utils/builtins.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: builtins.h,v 1.217 2003/05/15 15:50:20 petere Exp $ + * $Id: builtins.h,v 1.218 2003/05/23 22:33:23 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -608,9 +608,12 @@ extern Datum initcap(PG_FUNCTION_ARGS); extern Datum lpad(PG_FUNCTION_ARGS); extern Datum rpad(PG_FUNCTION_ARGS); extern Datum btrim(PG_FUNCTION_ARGS); +extern Datum btrim1(PG_FUNCTION_ARGS); extern Datum byteatrim(PG_FUNCTION_ARGS); extern Datum ltrim(PG_FUNCTION_ARGS); +extern Datum ltrim1(PG_FUNCTION_ARGS); extern Datum rtrim(PG_FUNCTION_ARGS); +extern Datum rtrim1(PG_FUNCTION_ARGS); extern Datum translate(PG_FUNCTION_ARGS); extern Datum chr(PG_FUNCTION_ARGS); extern Datum repeat(PG_FUNCTION_ARGS); |