postgresql/contrib/ltree
Peter Eisentraut d3aad4ac57 Remove ts_locale.c's t_isdigit(), t_isspace(), t_isprint()
These do the same thing as the standard isdigit(), isspace(), and
isprint() but with multibyte and encoding support.  But all the
callers are only interested in analyzing single-byte ASCII characters.
So this extra layer is overkill and we can replace the uses with the
standard functions.

All the t_is*() functions in ts_locale.c are under scrutiny because
they don't use the common locale provider framework but instead use
the global libc locale settings.  For the functions being touched by
this patch, we don't need all that anyway, as mentioned above, so the
simplest solution is to just remove them.  The few remaining t_is*()
functions will need a different treatment in a separate patch.

pg_trgm has some compile-time options with macros such as
KEEPONLYALNUM.  These are not documented, and the non-default variant
is not supported by any test cases.  As part of this undertaking, I'm
removing the non-default variant, as it is in the way of cleanup.  So
in this case, the not-KEEPONLYALNUM code path is gone.

Reviewed-by: Jeff Davis <pgsql@j-davis.com>
Discussion: https://www.postgresql.org/message-id/flat/653f3b84-fc87-45a7-9a0c-bfb4fcab3e7d%40eisentraut.org
2024-12-17 12:52:29 +01:00
..
data Add ltree data type to contrib, from Teodor Sigaev and Oleg Bartunov. 2002-07-30 16:40:34 +00:00
expected Add hash support functions and hash opclass for contrib/ltree. 2024-03-21 18:27:49 -04:00
sql Add hash support functions and hash opclass for contrib/ltree. 2024-03-21 18:27:49 -04:00
.gitignore Support "make check" in contrib 2011-04-25 22:27:11 +03:00
_ltree_gist.c Remove useless casts to (void *) 2024-11-28 08:27:20 +01:00
_ltree_op.c Remove useless casts to (void *) 2024-11-28 08:27:20 +01:00
crc32.c Adjust MSVC build scripts to parse Makefiles for defines 2021-07-29 12:01:23 +12:00
crc32.h Add support for binary I/O of ltree, lquery, and ltxtquery types. 2020-04-01 17:31:29 -04:00
lquery_op.c Remove useless character-length checks in contrib/ltree. 2022-10-06 11:18:32 -04:00
ltree--1.0--1.1.sql Make contrib modules' installation scripts more secure. 2020-08-10 10:44:42 -04:00
ltree--1.1--1.2.sql Add support for binary I/O of ltree, lquery, and ltxtquery types. 2020-04-01 17:31:29 -04:00
ltree--1.1.sql Update extensions with GIN/GIST support for parallel query. 2016-06-14 13:34:37 -04:00
ltree--1.2--1.3.sql Add hash support functions and hash opclass for contrib/ltree. 2024-03-21 18:27:49 -04:00
ltree.control Add hash support functions and hash opclass for contrib/ltree. 2024-03-21 18:27:49 -04:00
ltree.h Allow hyphens in ltree labels 2023-01-06 16:05:46 -05:00
ltree_gist.c Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
ltree_io.c Remove ts_locale.c's t_isdigit(), t_isspace(), t_isprint() 2024-12-17 12:52:29 +01:00
ltree_op.c Remove unused #include's from contrib, pl, test .c files 2024-10-28 08:02:17 +01:00
ltreetest.sql Add hash support functions and hash opclass for contrib/ltree. 2024-03-21 18:27:49 -04:00
ltxtquery_io.c Remove ts_locale.c's t_isdigit(), t_isspace(), t_isprint() 2024-12-17 12:52:29 +01:00
ltxtquery_op.c Clean up newlines following left parentheses 2020-01-30 13:42:14 -03:00
Makefile Add hash support functions and hash opclass for contrib/ltree. 2024-03-21 18:27:49 -04:00
meson.build Add hash support functions and hash opclass for contrib/ltree. 2024-03-21 18:27:49 -04:00