Re: BUG #16534: autovacuum_autoanalyze not working on latitude(earth) expression - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #16534: autovacuum_autoanalyze not working on latitude(earth) expression
Date
Msg-id 2072934.1594391776@sss.pgh.pa.us
Whole thread Raw
In response to BUG #16534: autovacuum_autoanalyze not working on latitude(earth) expression  (PG Bug reporting form <noreply@postgresql.org>)
Responses Re: BUG #16534: autovacuum_autoanalyze not working on latitude(earth) expression
List pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> I have indexes on on the latitude() and longitude() values of an
> earth-column. I can analyze these tables, but autoanalyze fails. Because
> autoanalyze fails, it will keep trying to analyze these tables.

Yeah, the earthdistance module is not really up to production standards.
It fails to worry about search path effects, so its references to cube
functions will fail if cube isn't in the search path, which it probably
won't be during autovacuum.

Possibly at some point somebody will care enough to patch the module
to attach "SET search_path" clauses to all the SQL functions.  But
generally, people who want this kind of thing in production are probably
going to want PostGIS, so it's not surprising that earthdistance is
an unloved backwater :-(

            regards, tom lane



pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #16534: autovacuum_autoanalyze not working on latitude(earth) expression
Next
From: Sergei Kornilov
Date:
Subject: Re: BUG #16534: autovacuum_autoanalyze not working on latitude(earth) expression