Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ezxi5-00087Y-Ko for pgsql-hackers@arkaria.postgresql.org; Sun, 25 Mar 2018 04:56:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ezxi4-00058X-0I for pgsql-hackers@arkaria.postgresql.org; Sun, 25 Mar 2018 04:56:48 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ezxi3-00058N-MI for pgsql-hackers@lists.postgresql.org; Sun, 25 Mar 2018 04:56:47 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ezxi0-0006Rz-Ri for pgsql-hackers@postgresql.org; Sun, 25 Mar 2018 04:56:46 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w2P4ucXb027185; Sun, 25 Mar 2018 00:56:38 -0400 From: Tom Lane To: Tomas Vondra cc: Arthur Zakirov , Pavel Stehule , Andres Freund , Ildus Kurbangaliev , pgsql-hackers Subject: Re: [PROPOSAL] Shared Ispell dictionaries In-reply-to: References: <20180307131819.GA13301@zakirov.localdomain> <3c7910ba-2a1b-5b73-71c6-d037ba1e89bd@2ndquadrant.com> <20180319110648.GA32319@zakirov.localdomain> <2ae9588a-f3cb-777d-1958-c76c22225823@2ndquadrant.com> <20180320131149.GA12884@zakirov.localdomain> <20180321090050.GA21751@zakirov.localdomain> <20180322105603.GA23544@zakirov.localdomain> <28250.1521924996@sss.pgh.pa.us> <25186.1521951490@sss.pgh.pa.us> Comments: In-reply-to Tomas Vondra message dated "Sun, 25 Mar 2018 06:45:08 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <27183.1521953798.1@sss.pgh.pa.us> Date: Sun, 25 Mar 2018 00:56:38 -0400 Message-ID: <27184.1521953798@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Tomas Vondra 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