From 06421b08436414b42cd169501005f15adee986f1 Mon Sep 17 00:00:00 2001 From: Jeff Davis Date: Wed, 4 Sep 2024 12:30:14 -0700 Subject: Remove lc_collate_is_c(). Instead just look up the collation and check collate_is_c field. Author: Andreas Karlsson Discussion: https://postgr.es/m/60929555-4709-40a7-b136-bcb44cff5a3c@proxel.se --- src/backend/access/spgist/spgtextproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/backend/access/spgist') diff --git a/src/backend/access/spgist/spgtextproc.c b/src/backend/access/spgist/spgtextproc.c index 3f08d330b61..d5237a68b5c 100644 --- a/src/backend/access/spgist/spgtextproc.c +++ b/src/backend/access/spgist/spgtextproc.c @@ -427,7 +427,7 @@ spg_text_inner_consistent(PG_FUNCTION_ARGS) { spgInnerConsistentIn *in = (spgInnerConsistentIn *) PG_GETARG_POINTER(0); spgInnerConsistentOut *out = (spgInnerConsistentOut *) PG_GETARG_POINTER(1); - bool collate_is_c = lc_collate_is_c(PG_GET_COLLATION()); + bool collate_is_c = pg_newlocale_from_collation(PG_GET_COLLATION())->collate_is_c; text *reconstructedValue; text *reconstrText; int maxReconstrLen; -- cgit v1.2.3