Skip to content

Commit 56c47f0

Browse files
committed
PGPRO-12044: Use str_tolower instead of removed lowerstr and lowerstr_with_len.
Caused by: - fb1a18810f07fc3b722392103d67ce8ed188b63d (PostgreSQL) Remove ts_locale.c's lowerstr() - a25f420 (shared_ispell subtree) affix file is created in current backend to avoid regex_t structure copying Tags: shared_ispell
1 parent 6c335c4 commit 56c47f0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/shared_ispell.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,10 @@
5454
#include "storage/ipc.h"
5555
#include "storage/shmem.h"
5656

57+
#include "catalog/pg_collation_d.h"
5758
#include "commands/defrem.h"
5859
#include "tsearch/ts_locale.h"
60+
#include "utils/formatting.h"
5961
#include "access/htup_details.h"
6062
#include "funcapi.h"
6163
#include "utils/builtins.h"
@@ -395,7 +397,7 @@ init_shared_dict(DictInfo *info, MemoryContext infoCntx,
395397
{
396398
StopList stoplist;
397399

398-
readstoplist(stopFile, &stoplist, lowerstr);
400+
readstoplist(stopFile, &stoplist, str_tolower);
399401

400402
size = sizeStopList(&stoplist, stopFile);
401403
if (size > segment_info->available)
@@ -613,7 +615,7 @@ dispell_lexize(PG_FUNCTION_ARGS)
613615
if (len <= 0)
614616
PG_RETURN_POINTER(NULL);
615617

616-
txt = lowerstr_with_len(in, len);
618+
txt = str_tolower(in, len, DEFAULT_COLLATION_OID);
617619

618620
/* need to lock the segment in shared mode */
619621
LWLockAcquire(segment_info->lock, LW_SHARED);

0 commit comments

Comments
 (0)