Re: [PROPOSAL] Improvements of Hunspell dictionaries support - Mailing list pgsql-hackers

From Artur Zakirov
Subject Re: [PROPOSAL] Improvements of Hunspell dictionaries support
Date
Msg-id 56276FAE.7000805@postgrespro.ru
Whole thread Raw
In response to Re: [PROPOSAL] Improvements of Hunspell dictionaries support  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
List pgsql-hackers
21.10.2015 01:37, Jim Nasby пишет:
> On 10/20/15 9:00 AM, Artur Zakirov wrote:
>> Internal representation of the dictionary in the PostgreSQL doesn't
>> impose too strict limits on the number of affix rules. There are a
>> flagval array, which size must be increased from 256 to 65000.
>
> Is that per dictionary entry, fixed at 64k? That seems pretty excessive,
> if that's the case...

This is per dictionary only. flagval array is used for the all 
dictionary. And it is not used for every dictionary word.

There are also flag field of AFFIX structure, wich size must be 
increased from 8 bit to 16 bit. This structure is used for every affix 
in affix file.

-- 
Artur Zakirov
Postgres Professional: http://www.postgrespro.com
Russian Postgres Company



pgsql-hackers by date:

Previous
From: Etsuro Fujita
Date:
Subject: Re: Foreign join pushdown vs EvalPlanQual
Next
From: Taiki Kondo
Date:
Subject: Re: [Proposal] Table partition + join pushdown