Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 7AB1B9BD82D for ; Mon, 5 Dec 2011 08:40:25 -0400 (AST) Received: from mahout.postgresql.org ([98.129.198.123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RXXqJ-0004wx-SM for pgsql-bugs@postgresql.org; Mon, 05 Dec 2011 12:40:25 +0000 Received: from [204.145.120.229] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RXXq7-000280-19 for pgsql-bugs@postgresql.org; Mon, 05 Dec 2011 12:40:11 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1RXXq6-0000vH-BA for pgsql-bugs@postgresql.org; Mon, 05 Dec 2011 12:40:10 +0000 Date: Mon, 05 Dec 2011 12:40:10 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6327: Prefix full-text-search fails for hosts with complicated names To: pgsql-bugs@postgresql.org From: Marcin.Kasperski@mekk.waw.pl X-Pg-Spam-Score: -3.1 (---) X-Archive-Number: 201112/41 X-Sequence-Number: 31852 The following bug has been logged on the website: Bug reference: 6327 Logged by: Marcin Kasperski Email address: Marcin.Kasperski@mekk.waw.pl PostgreSQL version: 9.1.1 Operating system: Linux Description: = Synopsis =3D=3D=3D=3D=3D=3D=3D=3D=3D 'goog:*' matches google.com but 'e-goog:*' does not match e-google.com Example SQL =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Try the queries below. Note ismatch column, which is t in the former, and f in the latter case (IMHO should be t in both). SELECT a query, b message, a@@b ismatch FROM ( SELECT TO_TSQUERY('english', 'goog:*') a, TO_TSVECTOR('english', 'See google.com') b) as foo; SELECT a query, b message, a@@b ismatch FROM ( SELECT TO_TSQUERY('english', 'e-goog:*') a, = TO_TSVECTOR('english', 'See e-google.com') b) as foo;