Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aoSFu-00026s-LF for pgsql-committers@arkaria.postgresql.org; Fri, 08 Apr 2016 08:59:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aoSFt-0005IW-2t for pgsql-committers@arkaria.postgresql.org; Fri, 08 Apr 2016 08:59:05 +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.84_2) (envelope-from ) id 1aoSFg-000556-Jm for pgsql-committers@postgresql.org; Fri, 08 Apr 2016 08:58:52 +0000 Received: from hook.sigaev.ru ([93.180.27.50]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aoSFd-0000tn-Bh for pgsql-committers@postgresql.org; Fri, 08 Apr 2016 08:58:51 +0000 Received: from xor.sai.msu.ru (newmail.postgrespro.ru [93.174.131.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: teodor) by hook.sigaev.ru (Postfix) with ESMTPSA id 1A4F3B191A0; Fri, 8 Apr 2016 11:58:47 +0300 (MSK) Subject: Re: pgsql: Phrase full text search. To: Tom Lane Cc: pgsql-committers@postgresql.org References: <22516.1460081958@sss.pgh.pa.us> From: Teodor Sigaev Message-ID: <570772C6.4060808@sigaev.ru> Date: Fri, 8 Apr 2016 11:58:46 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39 MIME-Version: 1.0 In-Reply-To: <22516.1460081958@sss.pgh.pa.us> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org >> Phrase full text search. > > Hasn't this patch broken on-disk compatibility of type tsquery by > renumbering the values of QueryOperator.operator? I'm looking at > the patch delta in ts_type.h. Distance field is placed exactly in hole between two uint8_t fields and uint32_t field, as I known any known platform which we support uses 4-byte aligment for int32 type. Am I wrong? If yes then I will move distance to the end of struct. QueryOpertor struct isn't used directly to store to disk, it's used in union QueryItem. sizeof(QueryItem) = 12 sizeof(QueryOperator) = 8, so we can add distance to the end without growning size of QueryItem. -- Teodor Sigaev E-mail: teodor@sigaev.ru WWW: http://www.sigaev.ru/ -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers