pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #15461: Postgresql fuzzy match extension giving out error
2+ messages / 2 participants
[nested] [flat]

* BUG #15461: Postgresql fuzzy match extension giving out error
@ 2018-10-26 10:03  PG Bug reporting form <noreply@postgresql.org>
  0 siblings, 1 reply; 2+ messages in thread

From: PG Bug reporting form @ 2018-10-26 10:03 UTC (permalink / raw)
  To: pgsql-bugs@lists.postgresql.org; +Cc: gagan.bhatia@xymob.in

The following bug has been logged on the website:

Bug reference:      15461
Logged by:          Gagandeep Singh Bhatia
Email address:      gagan.bhatia@xymob.in
PostgreSQL version: 9.6.6
Operating system:   x86_Linux 64 bits, compiled by gcc 4.8.2 20140120
Description:        

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
  Hint: No operator matches the given name and argument type(s). You might
need to add explicit type casts.
  Position: 49
  org.postgresql.util.PSQLException: ERROR: operator does not exist:
character varying % unknown
  Hint: No operator matches the given name and argument type(s). You might
need to add explicit type casts.
  Position: 49



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #15461: Postgresql fuzzy match extension giving out error
@ 2018-10-26 10:13  Tom Lane <tgl@sss.pgh.pa.us>
  parent: PG Bug reporting form <noreply@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2018-10-26 10:13 UTC (permalink / raw)
  To: gagan.bhatia@xymob.in; +Cc: pgsql-bugs@lists.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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2018-10-26 10:13 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-10-26 10:03 BUG #15461: Postgresql fuzzy match extension giving out error PG Bug reporting form <noreply@postgresql.org>
2018-10-26 10:13 ` Tom Lane <tgl@sss.pgh.pa.us>

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