Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W8vvw-0005yY-EN for pgsql-bugs@arkaria.postgresql.org; Thu, 30 Jan 2014 18:01:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W8vvv-0004BA-Ur for pgsql-bugs@arkaria.postgresql.org; Thu, 30 Jan 2014 18:01:47 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W8vvu-0004B2-SX for pgsql-bugs@postgresql.org; Thu, 30 Jan 2014 18:01:47 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W8vvj-0002B6-9G for pgsql-bugs@postgresql.org; Thu, 30 Jan 2014 18:01:46 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s0UI1P4G003023; Thu, 30 Jan 2014 13:01:25 -0500 From: Tom Lane To: =?UTF-8?Q?Tom=C3=A1=C5=A1_Vondra?= cc: pgsql-bugs@postgresql.org, craig.macdonald@glasgow.ac.uk Subject: Re: BUG #9038: trgm must have operand in index creation In-reply-to: References: Comments: In-reply-to =?UTF-8?Q?Tom=C3=A1=C5=A1_Vondra?= message dated "Thu, 30 Jan 2014 16:34:39 +0100" Date: Thu, 30 Jan 2014 13:01:25 -0500 Message-ID: <3022.1391104885@sss.pgh.pa.us> X-Pg-Spam-Score: -2.3 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org =?UTF-8?Q?Tom=C3=A1=C5=A1_Vondra?= writes: > craig.macdonald@glasgow.ac.uknapsal/a: >> The documentation at >> http://www.postgresql.org/docs/9.2/static/textsearch-indexes.html >> is incorrect in the syntax of CREATE INDEX for GIN and GIST. According to >> http://www.postgresql.org/docs/9.2/static/pgtrgm.html the keyword >> gist_trgm_ops is also necessary: > No it's not. The documentation about full-text clearly states that the column needs to be either tsvector or tsquery, but you're clearly using text. Yeah, Tomas is right: section 12.9 is discussing the core full-text-search datatypes, which have nothing much to do with contrib/pg_trgm's facilities. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs