From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Teodor Sigaev <teodor(at)sigaev(dot)ru> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Subject: | Re: proposal: tsearch dictionary initialization hook |
Date: | 2010-09-07 16:55:35 |
Message-ID: | AANLkTiniZRpCwBUNc0fO7Spf=cBLM3=hLL6bmz8-OT16@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hello
2010/9/7 Teodor Sigaev <teodor(at)sigaev(dot)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(at)sigaev(dot)ru
> WWW: http://www.sigaev.ru/
>
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Haggerty | 2010-09-07 17:05:39 | Re: git: uh-oh |
Previous Message | Teodor Sigaev | 2010-09-07 16:53:42 | Re: patch: tsearch - some memory diet |