Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gFz77-0005Z1-Dm for pgsql-bugs@arkaria.postgresql.org; Fri, 26 Oct 2018 10:13:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gFz75-0001Wh-CK for pgsql-bugs@arkaria.postgresql.org; Fri, 26 Oct 2018 10:13:07 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gFz75-0001Wa-2U for pgsql-bugs@lists.postgresql.org; Fri, 26 Oct 2018 10:13:07 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gFz71-0006Gj-9D for pgsql-bugs@lists.postgresql.org; Fri, 26 Oct 2018 10:13:05 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w9QAD0EM000666; Fri, 26 Oct 2018 06:13:01 -0400 From: Tom Lane To: gagan.bhatia@xymob.in cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15461: Postgresql fuzzy match extension giving out error In-reply-to: <15461-d24bd3875e0f9264@postgresql.org> References: <15461-d24bd3875e0f9264@postgresql.org> Comments: In-reply-to =?utf-8?q?PG_Bug_reporting_form?= message dated "Fri, 26 Oct 2018 10:03:59 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <25711.1540548780.1@sss.pgh.pa.us> Date: Fri, 26 Oct 2018 11:13:00 +0100 Message-ID: <25712.1540548780@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =?utf-8?q?PG_Bug_reporting_form?= 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