-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't use earth_distance in a materialized view using postgres docker image #1309
Comments
Using the following fixes the issue but I don't understand why it is required
|
I believe a recent change in the extension might have caused this: postgres/postgres@969bbd0 /cc @tglsfdc |
that helps, thanks @LaurentGoderre ! Put that in my migration scripts and I'm past the blocker. Much appreciated. |
This does not look like something we can fix via the image. Closing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi folks! I'm attempting to build a test harness where I can test my database migrations and pgsql functions with a docker container. My migration scripts do work well in my production DB, which is a timescale cloud instance. I first found this problem in the timescale docker image, and then tried the same thing against the vanilla postgres docker image and found that both acted the same way.
After I install earthdistance and its dependencies, I can run
ll_to_earth
andearth_distance
fine as long as I'm not trying to put it in a mat view ... am I missing something, or is something wrong with the docker image?Steps to reproduce
docker pull postgres docker run -d --name vanillapg -p 65432:5432 -e POSTGRES_PASSWORD=password postgres psql -d "postgres://postgres:password@localhost:65432/postgres"
earth_distance
is funcitonal (it is):Other research
When chasing
type 'earth' does not exist
, you get lots of posts aboutpg_dump
and search paths, but a) I'm not restoring from apg_dump
, and b) my search path does include public (which is where earthdistance is installed as per \dT):The text was updated successfully, but these errors were encountered: