Skip site navigation (1) Skip section navigation (2)

BUG #5793: tsquery error

From: "" <ms(at)instytut(dot)com(dot)pl>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #5793: tsquery error
Date: 2010-12-18 00:13:25
Message-ID: 201012180013.oBI0DPfc074511@wwwmaster.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-bugs
The following bug has been logged online:

Bug reference:      5793
Logged by:          
Email address:      ms(at)instytut(dot)com(dot)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)

Responses

pgsql-bugs by date

Next:From: Robert HaasDate: 2010-12-18 02:24:24
Subject: Re: BUG #5792: INSTALLER FAILS!!!
Previous:From: Daniel WitkowskiDate: 2010-12-17 15:02:44
Subject: BUG #5792: INSTALLER FAILS!!!

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group