Re: proposal: tsearch dictionary initialization hook - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: proposal: tsearch dictionary initialization hook
Date
Msg-id AANLkTiniZRpCwBUNc0fO7Spf=cBLM3=hLL6bmz8-OT16@mail.gmail.com
Whole thread Raw
In response to Re: proposal: tsearch dictionary initialization hook  (Teodor Sigaev <teodor@sigaev.ru>)
Responses Re: proposal: tsearch dictionary initialization hook
List pgsql-hackers
Hello

2010/9/7 Teodor Sigaev <teodor@sigaev.ru>:
> Hm, what is aim of this hook? It looks like a wrapper of dictionary init
> method.

If I use a mmap for shared dictionary, then I have to prealloc and
maybe preread dictionary - it can be done in external module. But I
have to join preloaded dictionary to requested dictionary. This hook
allows this relation - and it's general - I don't need any special
support in ispell dictionary.

Regards

Pavel


>
>> I propose a new hook type - that helps with controlling a life cycle
>> of some tsearch dictionaries. This hook has minimal impact on
>> performance - it's called once per session for one tsearch
>> configuration.
>
> --
> Teodor Sigaev                                   E-mail: teodor@sigaev.ru
>                                                   WWW: http://www.sigaev.ru/
>


pgsql-hackers by date:

Previous
From: Teodor Sigaev
Date:
Subject: Re: patch: tsearch - some memory diet
Next
From: Pavel Stehule
Date:
Subject: Re: can we publish a aset interface?