BUG #4562: ts_headline() adds space when parsing url - Mailing list pgsql-bugs

From Denis Monsieur
Subject BUG #4562: ts_headline() adds space when parsing url
Date
Msg-id 200812032333.mB3NXInQ049716@wwwmaster.postgresql.org
Whole thread Raw
Responses Re: BUG #4562: ts_headline() adds space when parsing url  ("gildas prime" <g.prime@aeschemunex.com>)
Re: BUG #4562: ts_headline() adds space when parsing url  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
The following bug has been logged online:

Bug reference:      4562
Logged by:          Denis Monsieur
Email address:      dmonsieur@gmail.com
PostgreSQL version: 8.3.4
Operating system:   Debian etch
Description:        ts_headline() adds space when parsing url
Details:

My system is 8.3.4, but people in #postgresql with 8.3.5 have confirmed the
issue.

The problem is a space being added to text in the form of
http://some.url/path
Compare the output:

shs=# SELECT ts_headline('http://some.url', to_tsquery('sometext'));
   ts_headline
-----------------
 http://some.url
(1 row)

shs=# SELECT ts_headline('http://some.url/path', to_tsquery('sometext'));
      ts_headline
-----------------------
 http:// some.url/path
(1 row)

pgsql-bugs by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: BUG #4560: bug 4528
Next
From: "gildas prime"
Date:
Subject: Re: BUG #4562: ts_headline() adds space when parsing url