From: ms@instytut.com.pl
To: pgsql-bugs@postgresql.org
Subject: BUG #5793: tsquery error
Date: Sat, 18 Dec 2010 00:13:25 GMT
Message-ID: <201012180013.oBI0DPfc074511@wwwmaster.postgresql.org> (raw)
The following bug has been logged online:
Bug reference: 5793
Logged by:
Email address: ms@instytut.com.pl
PostgreSQL version: 8, 9
Operating system: Linux
Description: tsquery error
Details:
The expression 'a & !(c) | a & b' is interpreted as '( a | !c ) & a & b'.
select 'a & !(c) | a & b'::tsquery;
Subsequent "rewrites" of the same expression give inconsistent results:
select '(a & !(c | d)) | (a & b)'::tsquery; -> 'a & !(c | d) | a & b'
(correct)
select 'a & !(c | d) | a & b'::tsquery; -> '(a | !(c | d)) & a & b' (not
correct)
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-bugs@postgresql.org
Cc: ms@instytut.com.pl
Subject: Re: BUG #5793: tsquery error
In-Reply-To: <201012180013.oBI0DPfc074511@wwwmaster.postgresql.org>
References: <201012180013.oBI0DPfc074511@wwwmaster.postgresql.org>
* 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