Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nAY4C-0003tF-PM for pgsql-general@arkaria.postgresql.org; Thu, 20 Jan 2022 14:05:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nAY4A-0004Hh-SP for pgsql-general@arkaria.postgresql.org; Thu, 20 Jan 2022 14:05:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nAY4A-0004HY-I8 for pgsql-general@lists.postgresql.org; Thu, 20 Jan 2022 14:05:30 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nAY45-0004lR-WC for pgsql-general@postgresql.org; Thu, 20 Jan 2022 14:05:30 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 20KE5NG0856145; Thu, 20 Jan 2022 09:05:23 -0500 From: Tom Lane To: Paul van der Linden cc: pgsql-general Subject: Re: Cannot find hstore operator In-reply-to: References: Comments: In-reply-to Paul van der Linden message dated "Thu, 20 Jan 2022 11:00:52 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <856143.1642687523.1@sss.pgh.pa.us> Date: Thu, 20 Jan 2022 09:05:23 -0500 Message-ID: <856144.1642687523@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Paul van der Linden writes: > during maintenance I saw a lot of lines in my postgreslog saying: > CONTEXT: SQL function "line_function" during inlining > automatic analyze of table "osm.planet_osm_line" > ERROR: operator does not exist: public.hstore -> unknown at character 45 It sounds like line_function is careless about its search path assumptions. auto-analyze will run index expressions with the search_path set to empty (i.e., only pg_catalog is accessible) and hstore isn't normally installed in pg_catalog. The easy fix would be to attach "SET search_path = public" to that function, but I believe that destroys the ability to inline it, which might be a performance problem for you. Alternatively you could schema-qualify the operator name, that is "foo OPERATOR(public.->) bar". regards, tom lane