From: craig.macdonald@glasgow.ac.uk
To: pgsql-bugs@postgresql.org
Subject: BUG #9038: trgm must have operand in index creation
Date: Thu, 30 Jan 2014 10:35:59 +0000
Message-ID: <20140130103559.8089.93549@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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
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: craig.macdonald@glasgow.ac.uk
Subject: Re: BUG #9038: trgm must have operand in index creation
In-Reply-To: <20140130103559.8089.93549@wrigleys.postgresql.org>
References: <20140130103559.8089.93549@wrigleys.postgresql.org>
* 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