From: Tom Lane <tgl@sss.pgh.pa.us>
To: Paul van der Linden <paul.doskabouter@gmail.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Cannot find hstore operator
Date: Thu, 20 Jan 2022 09:05:23 -0500
Message-ID: <856144.1642687523@sss.pgh.pa.us> (raw)
In-Reply-To: <CAEC-EqDH4ZfC_A6wfEfJdGFsZX+DhyURv3K-Q1aLHLozJwSqOA@mail.gmail.com>
References: <CAEC-EqDH4ZfC_A6wfEfJdGFsZX+DhyURv3K-Q1aLHLozJwSqOA@mail.gmail.com>
Paul van der Linden <paul.doskabouter@gmail.com> 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
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-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, paul.doskabouter@gmail.com
Subject: Re: Cannot find hstore operator
In-Reply-To: <856144.1642687523@sss.pgh.pa.us>
References: <CAEC-EqDH4ZfC_A6wfEfJdGFsZX+DhyURv3K-Q1aLHLozJwSqOA@mail.gmail.com> <856144.1642687523@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