pgsql: ltree: fix case-insensitive matching.

2025-12-16 Thread Jeff Davis
ltree: fix case-insensitive matching. Previously, ltree_prefix_eq_ci() used lowercasing with the default collation; while ltree_crc32_sz() used tolower() directly. These were equivalent only if the default collation provider was libc and the encoding was single-byte. Change both to use casefoldin

pgsql: ltree: fix case-insensitive matching.

2025-12-16 Thread Jeff Davis
ltree: fix case-insensitive matching. Previously, ltree_prefix_eq_ci() used lowercasing with the default collation; while ltree_crc32_sz() used tolower() directly. These were equivalent only if the default collation provider was libc and the encoding was single-byte. Change both to use casefoldin