Change collation cache to use simplehash.h.
authorJeff Davis <jdavis@postgresql.org>
Sun, 28 Jul 2024 19:39:57 +0000 (12:39 -0700)
committerJeff Davis <jdavis@postgresql.org>
Sun, 28 Jul 2024 19:39:57 +0000 (12:39 -0700)
commit005c6b833f7866b71b50a5382e30d6c3f695306e
tree14ce9db119aab73c97d308e4b33a39427f916faf
parentcdd6ab9d1f5396ec1097d51c21a224aa41118c9c
Change collation cache to use simplehash.h.

Speeds up text comparison expressions when using a collation other
than the database default collation. Does not affect larger operations
such as ORDER BY, because the lookup is only done once.

Discussion: https://postgr.es/m/7bb9f018d20a7b30b9a7f6231efab1b5e50c7720.camel@j-davis.com
Reviewed-by: John Naylor, Andreas Karlsson
src/backend/utils/adt/pg_locale.c