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 1efttX-00063p-6W for pgsql-general@arkaria.postgresql.org; Sun, 28 Jan 2018 20:49:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1efttU-0005ow-RB for pgsql-general@arkaria.postgresql.org; Sun, 28 Jan 2018 20:49:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1efttU-0005om-JM for pgsql-general@lists.postgresql.org; Sun, 28 Jan 2018 20:49:40 +0000 Received: from mail-pf0-x22c.google.com ([2607:f8b0:400e:c00::22c]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1efttR-0004I1-16 for pgsql-general@postgresql.org; Sun, 28 Jan 2018 20:49:39 +0000 Received: by mail-pf0-x22c.google.com with SMTP id 17so1617888pfw.11 for ; Sun, 28 Jan 2018 12:49:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lucee-org.20150623.gappssmtp.com; s=20150623; h=subject:cc:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=O0O9AtKApQNF8Bgh/YIPNHRO2Ws2i7crJpHLo8/BbPk=; b=ptd/DgXjgw4ttVAXse4Kn01af0rL64HoGttblACpmoqGS6dKHIfSJOV8ETKrOMnelg UY74BWE8e4MyJaUHSkVDpsSYy1xQDZrsCilQIwU3afSDTbBk3aB5uCqYJzLkX0GK+qt1 FIkOn/ANtcQNQ9qqahT++hgdE+jOP+mddgDo49S0D28BsvYT/WDm9JC/s9p/Lnprwh/2 UuZQy/t/x2NkOdB5nQNI3VDQb3b/gNhXjALG5HquQlva2eK9c26Dyj93v8WPKQ4uYEuV df/rbRQxv0dclFOFDwEA88x64XzeVWTZwLXcWWiP5nuxQPTad53jHpdkStxiIXEY8Vby RwBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=O0O9AtKApQNF8Bgh/YIPNHRO2Ws2i7crJpHLo8/BbPk=; b=qq9c7tTgeFyPrfxsFVlyFWe+gtqhEQI0TyYzDIqtc55yoBhulEQoHWUWjnnitS7P4Q GILrG6NXviCfhnSM75LB7nqMTUNKQHOooKQ3VeFcLxJ+Auo6ODSLRTWB/IMDPJ8SjC7J hTnN5HGam3yyuNUBcSBZ8bEHd9v6dM7DeJwdUu4ot++7VASxb302IlA3mk2aZiNDczjl 1DBfSsO5NHtzHpI4efIYKk1/FPP3Pct5mdFbkWDx+z8Dqq3M1Xlq7NBszmXyEkXmHONs gtSS6B12CvHLPrAVPGnrSr3/yYP/d55uIPlZIgRAYG3ClCdMJheT9x6zm87dtdnf/860 1xew== X-Gm-Message-State: AKwxytdvhJej2tSX4WqHx0XqlioBOifQezc6rDzfpXcPr0O3HgCrv+4S IvgFmnnOlhbpHdj3G/hkiZe8GWLO X-Google-Smtp-Source: AH8x227UZMjKEGjU89kv4lfneSTZTblaWTUx01ldInJfsiPynn6yoNM9A7DmdRlJjnGFJiOZiK9DVQ== X-Received: by 2002:a17:902:2702:: with SMTP id c2-v6mr17881393plb.342.1517172572909; Sun, 28 Jan 2018 12:49:32 -0800 (PST) Received: from [192.168.1.15] (45-19-167-161.lightspeed.irvnca.sbcglobal.net. [45.19.167.161]) by smtp.googlemail.com with ESMTPSA id q14sm13813402pgt.53.2018.01.28.12.49.31 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Jan 2018 12:49:32 -0800 (PST) Subject: Re: pg_trgm Extension Installed but Operators and Functions do not exist Cc: pgsql-general References: <14642.1517171732@sss.pgh.pa.us> From: "Igal @ Lucee.org" Message-ID: <6fe73c13-cb22-09ca-bcd8-a11947be71a1@lucee.org> Date: Sun, 28 Jan 2018 12:49:31 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <14642.1517171732@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 1/28/2018 12:35 PM, Tom Lane wrote: > "Igal @ Lucee.org" writes: >> I am trying to run a query which was working a few weeks ago, and it >> utilizes the <<-> operator but I am getting an error: operator does not >> exist text <<-> text. >> >> If I try to install the pg_trgm extension with `CREATE EXTENSION >> pg_trgm;` I get an error: extension "pg_trgm" already exists. > Seems like a likely bet is that the extension is installed in a schema > that isn't in your search_path. Thank you, Tom.  I was unaware of the fact that extensions are installed to specific schemas. For future users who might face this issue, I fixed it by re-creating the extension in the pg_catalog schema, which is always in the search_path [1]:   DROP EXTENSION pg_trgm;   CREATE EXTENSION pg_trgm SCHEMA pg_catalog; Thanks again, Igal [1] https://www.postgresql.org/docs/current/static/runtime-config-client.html#GUC-SEARCH-PATH