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 1ex0fK-0005Ns-CL for pgsql-hackers@arkaria.postgresql.org; Sat, 17 Mar 2018 01:29:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ex0fI-0002Kr-HE for pgsql-hackers@arkaria.postgresql.org; Sat, 17 Mar 2018 01:29:44 +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 1ex0fH-0002KY-WB for pgsql-hackers@lists.postgresql.org; Sat, 17 Mar 2018 01:29:44 +0000 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ex0fC-0003yW-PM for pgsql-hackers@postgresql.org; Sat, 17 Mar 2018 01:29:42 +0000 Received: by mail-wr0-x242.google.com with SMTP id z12so13301860wrg.4 for ; Fri, 16 Mar 2018 18:29:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=79CVil56Fvga9hfSLutXoWm1lPiJ37Jf4zUOP60rMTQ=; b=dHYoZwSldaIkC1qaXcw9ye74BGrMs3Ae+cSeaFeq51PzgXXRz6cpg7co/F7xax1AV4 /gIFNFNlySH8GYvg2Mo/Ov/D/+PYHkk86xVoWUA2+4+83eK5NyRJdQUegMKO5pEKq4uF /eaGuZ7LgYazbCDHbhxBvUuuA4ROT4Lc/yvf8Y/BxVx5b+rPfFwVF7A4ZsC1lffo9g/d mcy087IvsgHrIQTtJQLN94sUqbk6WHwBs2I6ClWUd/OYl37NxtybSuCSGz3umVusDntu aQYRhSfT+DM21TwK8X8F0EyMdzrCN5UChc8oaFy7V0MxRGTszEz4QfDFDmnAO8nIbj38 EHYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=79CVil56Fvga9hfSLutXoWm1lPiJ37Jf4zUOP60rMTQ=; b=QTn+as1isoRy8VfQeD7Y65mGqi6VngcNe/cXQrkJDRYR7Zm8cctsDKllgifO+7kfof eN/zG00q3OO2yZdLwOGeUg86N3ntPWX4Qa5zHmZyY3F9c/ShpJPG0ZxQ0jlwEq/m2HLD Zx1rljR8IGRPoHXtbSYVs2qVRTeB44tZZ4VdZjnawZXZ9NkyZU5O//XZgmmoVGo5Uo7k A1BvYG9kAh05fIMTeGDx9aY+S2U1dhIHlfTucNuiWZhWtGgWHnn1IRFRh1YsYb3Cle7x 65j/c/hEFmfJ3wx10amD+9rH516F2Riyzh4s5Cikn4dNhF4ahTI3sW+zWqvrFpfg1k/Z IDuA== X-Gm-Message-State: AElRT7FjZkj1b+oTLFLxudtp9rIkn6dJhI2EWd2mgps24wxZfKCkUbgb XPxEBNaR0y2DJJB4wS5b5ypcQqt1i3cv5lCNjyjysaAdhUebi/Djp8JEVVNtuSeel6t15LqAPcu wFze/dGi5DEMOo+mcRozxi4fvquu+YkLWWI0AkFC/5gScObQdw8r8QtXmC3tFp/U6K0ZiWVIJod K3H5yQ41iHGBA= X-Google-Smtp-Source: AG47ELtDjWKHPt+98DBMOg0sQXyOtH9v6Ldl1zztZobLsYKKxIEjKA8OXdpUctf/yCGZtdgrqvw6ig== X-Received: by 10.223.209.11 with SMTP id a11mr812772wri.277.1521250176651; Fri, 16 Mar 2018 18:29:36 -0700 (PDT) Received: from [10.137.2.19] (ip-78-102-97-226.net.upcbroadband.cz. [78.102.97.226]) by smtp.gmail.com with ESMTPSA id 1sm8220977wmj.35.2018.03.16.18.29.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Mar 2018 18:29:35 -0700 (PDT) Subject: Re: [PROPOSAL] Shared Ispell dictionaries To: Arthur Zakirov , Pavel Stehule Cc: Andres Freund , Ildus Kurbangaliev , pgsql-hackers References: <20180302043149.tn2xjgt2vcigknhe@alap3.anarazel.de> <20180307085553.GA5126@zakirov.localdomain> <3195b6e6-4026-d7e2-ffa9-3780bc3cca6f@2ndquadrant.com> <20180307115528.GA10093@zakirov.localdomain> <20180307124353.GA12054@zakirov.localdomain> <20180307125847.GA12617@zakirov.localdomain> <20180307131819.GA13301@zakirov.localdomain> From: Tomas Vondra Message-ID: <3c7910ba-2a1b-5b73-71c6-d037ba1e89bd@2ndquadrant.com> Date: Sat, 17 Mar 2018 02:29:31 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20180307131819.GA13301@zakirov.localdomain> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 03/07/2018 02:18 PM, Arthur Zakirov wrote: > On Wed, Mar 07, 2018 at 02:12:32PM +0100, Pavel Stehule wrote: >> 2018-03-07 14:10 GMT+01:00 Pavel Stehule : >>> 2018-03-07 13:58 GMT+01:00 Arthur Zakirov : >>>> Oh understood. Tomas suggested those commands too earlier. I'll >>>> implement them. But I think it is better to track files modification time >>>> too. Because now, without the patch, users don't have to call additional >>>> commands to refresh their dictionaries, so without such tracking we'll >>>> made dictionaries maintenance harder. >>>> >>> >>> Postgres hasn't any subsystem based on modification time, so >>> introduction this sensitivity, I don't see, practical. >>> >> >> Usually the shared dictionaries are used for complex language >> based fulltext. The frequence of updates of these dictionaries is >> less than updates PostgreSQL. The czech dictionary is same 10 >> years. > > Agree. In this case auto reloading isn't important feature here. > Arthur, what are your plans with this patch in the current CF? It does not seem to be moving towards RFC very much, and reworking the patch to use mmap() seems like a quite significant change late in the CF. Which means it's likely to cause the patch get get bumped to the next CF (2018-09). FWIW I am not quite sure if the mmap() approach is better than what was implemented by the patch. I'm not sure how exactly will it behave under memory pressure (AFAIK it goes through page cache, which means random parts of dictionaries might get evicted) or how well is it supported on various platforms (say, Windows). regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services