Re: [PROPOSAL] Shared Ispell dictionaries - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PROPOSAL] Shared Ispell dictionaries
Date
Msg-id 27184.1521953798@sss.pgh.pa.us
Whole thread Raw
In response to Re: [PROPOSAL] Shared Ispell dictionaries  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
List pgsql-hackers
Tomas Vondra <tomas.vondra@2ndquadrant.com> writes:
> FWIW this is where the view listing dictionaries loaded into shared
> memory would be helpful - you'd at least know there's a dictionary,
> wasting memory.

Well, that's only because we failed to make the implementation transparent
:-(.  But it's not unlikely that an mmap-based implementation would be
simply incapable of supporting such a view: the knowledge of whether a
particular file is mapped in would be pretty much process-local, I think.
So I'd really rather we don't add that.

Also, while these dictionaries are indeed kind of large relative to our
traditional view of shared memory, if they're in DSM segments that the
kernel can swap out then I really suspect that nobody would much care
if a few such segments had been leaked.  I find it hard to imagine a
use-case where DROP race conditions would lead us to leak so many that
it becomes a serious problem.  Maybe I lack imagination.

            regards, tom lane


pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: [PROPOSAL] Shared Ispell dictionaries
Next
From: David Rowley
Date:
Subject: Re: [HACKERS] path toward faster partition pruning