BUG #15112: Unable to run pg_upgrade with earthdistance extension - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #15112: Unable to run pg_upgrade with earthdistance extension
Date
Msg-id 152106914669.1223.5104148605998271987@wrigleys.postgresql.org
Whole thread Raw
Responses Re: BUG #15112: Unable to run pg_upgrade with earthdistance extension
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      15112
Logged by:          Keiko Oda
Email address:      keiko713@gmail.com
PostgreSQL version: 10.3
Operating system:   Ubuntu
Description:

This is similar to the bug report from 2016
(https://www.postgresql.org/message-id/20161015001424.1413.93990@wrigleys.postgresql.org).
where earthdistance extension is assuming that it's executed with public
schema in search_path.

With 10.3 release, Postgres has tighten the search_path during pg_upgrade
only to pg_catalog. This is problematic as it's now impossible to run
pg_upgrade with earthdistance extension (it fails with create index with
ll_to_earth function).
Prior to this, we were at least able to workaround by adding public schema
in search_path with pg_upgrade.

As it's recommended in the release note, earthdistance should adjust these
functions to not assume anything about what search path they are invoked
under.


pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #15111: c between x and x gives bad planning
Next
From: Mark Magnus
Date:
Subject: Postgres 10.3 delete on partition table cannot execute, out of memory.