From: Tomáš Vondra <tv@fuzzy.cz>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #9038: trgm must have operand in index creation
Date: Thu, 30 Jan 2014 16:34:39 +0100
Message-ID: <jo41r5ylj62pn67vic0mt5yk.1391096079117@email.android.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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.
Tomas
craig.macdonald@glasgow.ac.uknapsal/a:
>The following bug has been logged on the website:
>
>Bug reference: 9038
>Logged by: Craig Macdonald
>Email address: craig.macdonald@glasgow.ac.uk
>PostgreSQL version: 9.2.0
>Operating system: Documentation
>Description:
>
>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:
>
>test=> CREATE INDEX trgm_idx ON test_trgm USING gist (t);
>ERROR: data type text has no default operator class for access method
>"gist"
>test=> CREATE INDEX trgm_idx ON test_trgm USING gist (t gist_trgm_ops);
>CREATE INDEX
>
>
>
>--
>Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
>To make changes to your subscription:
>http://www.postgresql.org/mailpref/pgsql-bugs
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tv@fuzzy.cz
Subject: Re: BUG #9038: trgm must have operand in index creation
In-Reply-To: <jo41r5ylj62pn67vic0mt5yk.1391096079117@email.android.com>
References: <jo41r5ylj62pn67vic0mt5yk.1391096079117@email.android.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox