pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Teodor Sigaev <teodor@sigaev.ru>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Phrase full text search.
Date: Fri, 8 Apr 2016 11:58:46 +0300
Message-ID: <570772C6.4060808@sigaev.ru> (raw)
In-Reply-To: <22516.1460081958@sss.pgh.pa.us>
References: <E1aoCJy-0004bp-HI@gemulon.postgresql.org>
	<22516.1460081958@sss.pgh.pa.us>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>


>> 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



view thread (6+ messages)  latest in thread

Message-ID: <570772C6.4060808@sigaev.ru>
Permalink:  ../570772C6.4060808@sigaev.ru/
Also on:    postgresql.org/message-id/570772C6.4060808@sigaev.ru

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: teodor@sigaev.ru, tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Phrase full text search.
  In-Reply-To: <570772C6.4060808@sigaev.ru>
  References: <E1aoCJy-0004bp-HI@gemulon.postgresql.org> <22516.1460081958@sss.pgh.pa.us> <570772C6.4060808@sigaev.ru>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox