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

Teodor Sigaev <teodor@sigaev.ru> writes:
>> 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?

No, I'm worried about the fact that you changed the OP_xxx constants.
Won't that cause a pre-existing tsquery operator to be read incorrectly?

Assuming that I'm right, you need to revert OP_AND/OP_OR/OP_NOT to what
they were before, which means you need to give up on the assumption that
the numerical values of the OP_xxx constants correspond directly to their
syntactic priority.  But that assumption was never going to survive the
next tsquery expansion anyway.  I'd suggest a static const array mapping
the OP values into their syntactic priorities.

			regards, tom lane


-- 
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: <11272.1460123329@sss.pgh.pa.us>
Permalink:  ../11272.1460123329@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11272.1460123329@sss.pgh.pa.us

 · 

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

* 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