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 1f3jiy-0006Pj-62 for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Apr 2018 14:49:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f3jix-0006qI-5H for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Apr 2018 14:49:19 +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 1f3jiw-0006oz-Mc for pgsql-hackers@lists.postgresql.org; Wed, 04 Apr 2018 14:49:18 +0000 Received: from mail.postgrespro.ru ([93.174.131.138]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f3jip-00085L-13 for pgsql-hackers@lists.postgresql.org; Wed, 04 Apr 2018 14:49:17 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id 091DE21C1FB0; Wed, 4 Apr 2018 17:49:09 +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 mail.postgrespro.ru (cyclops.l.postgrespro.ru [192.168.27.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mail.postgrespro.ru (Postfix) with ESMTPSA id C8CFC21C1FAE; Wed, 4 Apr 2018 17:49:08 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1522853348; bh=G3IGEt0ItEl/EiIAoeZjCy0DPnVq/COxQB/2I5FCpU8=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=AZgRzl9+gz+E3RNnP5R1MTHu0GWpXR+Jlt9ZEmeeqw7AYBDgu5hiL1Ktt/JVwu0ba zbf1FPvkyeldkTu8e+ilrac+IMufT/NIGBucOqC4nTfa/i3+LRtzsBUo9/YGY342EI 5hTDk1RyTIS2b0AByq/IFjehdWuo+7SmqYoffiLY= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 04 Apr 2018 17:49:08 +0300 From: Aleksandr Parfenov To: Dmitry Ivanov Cc: Aleksander Alekseev , Thomas Munro , David Steele , PostgreSQL Hackers Subject: Re: new function for tsquery creartion In-Reply-To: References: <20180302030605.5ur6ktkb2vyb46pb@alap3.anarazel.de> <152025433949.1548.16466871234054596674.pgcf@coridan.postgresql.org> <34280367-0dab-7f73-8d7c-d21c7276814b@pgmasters.net> <8df9de83119eb295f3424c573d64ff84@postgrespro.ru> <20180326092405.71820cf2@asp437-24-g082ur> <6754a224654a4f0339195b83b133d551@postgrespro.ru> <9153fb21831d0ba7c832960f37df2688@postgrespro.ru> <20180328092115.GA32581@e733.localdomain> <8829c490d0e17b6033b3fd622dfeed1e@postgrespro.ru> <1f33416d7173df5504e84e63680bd27e@postgrespro.ru> <94e41ae5e36b640d3172729c4c9b5b4c@postgrespro.ru> <20180403171320.400cd24a@asp437-24-g082ur> Message-ID: X-Sender: a.parfenov@postgrespro.ru User-Agent: Roundcube Webmail/1.2.4 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-04-04 17:33, Dmitry Ivanov wrote: > I've been thinking about this for a while, and it seems that this > should be fixed somewhere near parsetext(). Perhaps 'pg' and 'class' > should share the same position. After all, somebody could implement a > parser which would split some words using an arbitrary set of rules, > for instance "split all words containing digits". I propose merging > this patch provided that there are no objections. I'm agree that this problem should be solved in separate patch and that this feature can be merged without waiting for the fix. -- Aleksandr Parfenov Postgres Professional: http://www.postgrespro.com Russian Postgres Company