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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-bugs by date

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