Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eegcH-0001Jb-6j for pgsql-hackers@arkaria.postgresql.org; Thu, 25 Jan 2018 12:26:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eegcG-0006UZ-Ll for pgsql-hackers@arkaria.postgresql.org; Thu, 25 Jan 2018 12:26:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eegcG-0006UP-77 for pgsql-hackers@lists.postgresql.org; Thu, 25 Jan 2018 12:26:52 +0000 Received: from mail.postgrespro.ru ([93.174.131.138]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eegcC-0004OR-WC for pgsql-hackers@postgresql.org; Thu, 25 Jan 2018 12:26:51 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id 3FCA121C1C29; Thu, 25 Jan 2018 15:26:47 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at postgrespro.ru X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=x tagged_above=-99 required=4 WHITELISTED tests=[] autolearn=unavailable Received: from wp.localdomain (gw.postgrespro.ru [93.174.131.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail.postgrespro.ru (Postfix) with ESMTPSA id 0B8F421C00D0; Thu, 25 Jan 2018 15:26:47 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1516883207; bh=KE682mjAQsTqrXRvtAH5olnWi5XYWvT4ofuOmwuTKmo=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=P88oNC0s/1SLw+m1M1Pe2v2UvV8Lkd5ZF28XVsd2zAXikR4YJh6H91Nl2LymEI8ZB 09tNmcZSm9UfRybhRk4qJeqeLKgruXWVDhw51FyDALDHrwR69seT+cYmjlYvumY2dV fcC75NLSuFfkGHDWH13GZn8fQ+XW8t74IfITVp4A= Date: Thu, 25 Jan 2018 15:26:46 +0300 From: Ildus Kurbangaliev To: Arthur Zakirov Cc: Tomas Vondra , pgsql-hackers Subject: Re: [PROPOSAL] Shared Ispell dictionaries Message-ID: <20180125152646.3b4d2850@wp.localdomain> In-Reply-To: <20180124172039.GA11210@zakirov.localdomain> References: <20171226164825.GA29922@zakirov.localdomain> <20171231152811.GA4233@arthur.localdomain> <20180107190526.GA27803@arthur.localdomain> <20180124172039.GA11210@zakirov.localdomain> Organization: Postgres Professional X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, 24 Jan 2018 20:20:41 +0300 Arthur Zakirov wrote: Hi, I did some review of the patch. In 0001 there are few lines where is only indentation has changed. 0002: - TsearchShmemSize - calculating size using hash_estimate_size seems redundant since you use DSA hash now. - ts_dict_shmem_release - LWLockAcquire in the beginning makes no sense, since dict_table couldn't change anyway. 0003: - ts_dict_shmem_location could return IspellDictData, it makes more sense. 0006: It's very subjective, but I think it would nicer to call option as Shared (as property of dictionary) or UseSharedMemory, the boolean option called SharedMemory sounds weird. Overall the patches look good, all tests passed. I tried to broke it in few places where I thought it could be unsafe but not succeeded. -- --- Ildus Kurbangaliev Postgres Professional: http://www.postgrespro.com Russian Postgres Company