]> granicus.if.org Git - postgresql/commit
Modify the built-in text search parser to handle URLs more nearly according
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 28 Apr 2010 02:04:16 +0000 (02:04 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 28 Apr 2010 02:04:16 +0000 (02:04 +0000)
commit2c265adea3129c917296b46a82786d67988ece2c
treedbb37543101132b3b6fff6b5a33bbe53d7921897
parentd64b110a64c407ca8f4b3d885a62c05b51711d14
Modify the built-in text search parser to handle URLs more nearly according
to RFC 3986.  In particular, these characters now terminate the path part
of a URL: '"', '<', '>', '\', '^', '`', '{', '|', '}'.  The previous behavior
was inconsistent and depended on whether a "?" was present in the path.
Per gripe from Donald Fraser and spec research by Kevin Grittner.

This is a pre-existing bug, but not back-patching since the risks of
breaking existing applications seem to outweigh the benefits.
src/backend/tsearch/wparser_def.c
src/test/regress/expected/tsearch.out
src/test/regress/sql/tsearch.sql