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

Re: Bug with Tsearch and tsvector

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jasen Betts <jasen(at)xnet(dot)co(dot)nz>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Bug with Tsearch and tsvector
Date: 2010-04-29 13:31:58
Message-ID: 10179.1272547918@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugs
Jasen Betts <jasen(at)xnet(dot)co(dot)nz> writes:
> \ is popular in URIs on some platfroms, or is URI a different beast

I hope not, because \ is explicitly disallowed by both the older and
newer versions of that RFC.

I did think of proposing that we allow \ and : in FilePath, which is
currently pretty Unix-centric:

regression=# select * from ts_debug('/foo/bar.baz');
 alias |    description    |    token     | dictionaries | dictionary |    lexemes     
-------+-------------------+--------------+--------------+------------+----------------
 file  | File or path name | /foo/bar.baz | {simple}     | simple     | {/foo/bar.baz}
(1 row)

regression=# select * from ts_debug(E'C:\\foo\\bar.baz');
   alias   |   description   |  token  |  dictionaries  |  dictionary  |  lexemes  
-----------+-----------------+---------+----------------+--------------+-----------
 asciiword | Word, all ASCII | C       | {english_stem} | english_stem | {c}
 blank     | Space symbols   | :\      | {}             |              | 
 asciiword | Word, all ASCII | foo     | {english_stem} | english_stem | {foo}
 blank     | Space symbols   | \       | {}             |              | 
 host      | Host            | bar.baz | {simple}       | simple       | {bar.baz}
(5 rows)

But that's more or less orthogonal to what URLPath should allow.

			regards, tom lane

In response to

Responses

pgsql-bugs by date

Next:From: Juan C. AragonDate: 2010-04-29 15:55:25
Subject: Re: BUG #5442: Postgres crash when closing a "/console" mstsc session
Previous:From: sdelforgeDate: 2010-04-29 12:26:39
Subject: BUG #5442: Postgres crash when closing a "/console" mstsc session

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