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

BUG #4933: ts_rewrite() causes segfault when query with more than one node becomes empty

From: "Aaron Marcuse-Kubitza" <aaronmk(at)blackducksoftware(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #4933: ts_rewrite() causes segfault when query with more than one node becomes empty
Date: 2009-07-22 15:36:36
Message-ID: 200907221536.n6MFaaeH043985@wwwmaster.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-bugs
The following bug has been logged online:

Bug reference:      4933
Logged by:          Aaron Marcuse-Kubitza
Email address:      aaronmk(at)blackducksoftware(dot)com
PostgreSQL version: 8.3.7
Operating system:   Mac OS X 10.5.7
Description:        ts_rewrite() causes segfault when query with more than
one node becomes empty
Details: 

Running

SELECT ts_rewrite('''example'' & ''example'''::tsquery,
'''example'''::tsquery, ''::tsquery)

causes the error "LOG:  server process (PID ...) was terminated by signal
11: Segmentation fault". Any combination of &, |, and () using only
'example' nodes causes the same problem.

However, running

SELECT ts_rewrite('''example'''::tsquery, '''example'''::tsquery,
''::tsquery)

works as expected.

Responses

pgsql-bugs by date

Next:From: Benjamin ReedDate: 2009-07-22 18:47:52
Subject: BUG #4934: regression in IN with joins in subselect
Previous:From: Peter MuchDate: 2009-07-22 15:29:50
Subject: Re: BUG #4932: Upgrade 8.2.13 -> 8.4.0 - Kerberos option missing

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