From: Tom Lane <tgl@sss.pgh.pa.us>
To: gagan.bhatia@xymob.in
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15461: Postgresql fuzzy match extension giving out error
Date: Fri, 26 Oct 2018 11:13:00 +0100
Message-ID: <25712.1540548780@sss.pgh.pa.us> (raw)
In-Reply-To: <15461-d24bd3875e0f9264@postgresql.org>
References: <15461-d24bd3875e0f9264@postgresql.org>
=?utf-8?q?PG_Bug_reporting_form?= <noreply@postgresql.org> writes:
> I am using PostgreSQL DB hosted on AWS. I am trying to use fuzzy logic,
> enabled its extension successfully. But running the fussy match Query gives
> me an exception. Also verified, the extension is already enabled but still,
> Query failed.
> **Query used to enable extension** - CREATE EXTENSION pg_trgm;
> **DB version details** - PostgreSQL 9.6.6 on x86_64-pc-linux-gnu, compiled
> by gcc (GCC) 4.8.2 20140120 (Red Hat 4.8.2-16), 64-bit
> **Query for fuzzy match** - SELECT first_name FROM contact WHERE first_name
> % 'Eve' LIMIT 10;
> **Error message -** SQL Error [42883]: ERROR: operator does not exist:
> character varying % unknown
Hm, works for me. Maybe you don't have the public schema in your
search_path? By default, that's where pg_trgm's operators would be put.
regards, tom lane
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: tgl@sss.pgh.pa.us, gagan.bhatia@xymob.in
Subject: Re: BUG #15461: Postgresql fuzzy match extension giving out error
In-Reply-To: <25712.1540548780@sss.pgh.pa.us>
References: <15461-d24bd3875e0f9264@postgresql.org> <25712.1540548780@sss.pgh.pa.us>
* 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