Re: BUG #18362: unaccent rules and Old Greek text - Mailing list pgsql-bugs

From Peter Eisentraut
Subject Re: BUG #18362: unaccent rules and Old Greek text
Date
Msg-id fed622f0-b7bb-4294-a91b-02ccdd2bf54f@eisentraut.org
Whole thread Raw
In response to Re: BUG #18362: unaccent rules and Old Greek text  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: BUG #18362: unaccent rules and Old Greek text
List pgsql-bugs
On 14.05.24 16:51, Robert Haas wrote:
> 1. The question of rule file load times seems like something that
> anyone who could compile PostgreSQL with and without a patch applied
> could test in under an hour. They could then report the results that
> they got, and people here could judge whether the resulting numbers
> are totally cool or very sad or something in between. Anyone willing
> to do that?

The rules are only loaded once on first use, right?  I tested with

date; for x in $(seq 1 1000); do psql -X -c "select unaccent('foobar')" 
-o /dev/null; done; date

and this had the same runtime (about 8 seconds here) with and without 
the patch.

Btw., with the patch I get

WARNING:  duplicate source strings, first one will be used

so it will need to adjustments in how the rules are produced.




pgsql-bugs by date:

Previous
From: Bowen Shi
Date:
Subject: Re: relfrozenxid may disagree with row XIDs after 1ccc1e05ae
Next
From: Peter Eisentraut
Date:
Subject: Re: BUG #18362: unaccent rules and Old Greek text