Skip to content

Restore problem #2972

Answered by CrowMash
pochacho99 asked this question in Q&A
Nov 8, 2022 · 3 comments · 11 replies
Discussion options

You must be logged in to vote

Did you run the requests detailed here?

Stop the teslamate container to avoid write conflicts

docker-compose stop teslamate

Drop existing data and reinitialize

docker-compose exec -T database psql -U teslamate << .
drop schema public cascade;
create schema public;
create extension cube;
create extension earthdistance;
CREATE OR REPLACE FUNCTION public.ll_to_earth(float8, float8)
RETURNS public.earth
LANGUAGE SQL
IMMUTABLE STRICT
PARALLEL SAFE
AS 'SELECT public.cube(public.cube(public.cube(public.earth()*cos(radians($1))*cos(radians($2))),public.earth()*cos(radians($1))*sin(radians($2))),public.earth()*sin(radians($1)))::public.earth';
.

Restore

docker-compose exec -T database psql -U tesl…

Replies: 3 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by JakobLichterfeld
Comment options

You must be logged in to vote
10 replies
@PoppyS33d
Comment options

@JakobLichterfeld
Comment options

@PoppyS33d
Comment options

@brianmay
Comment options

brianmay Aug 6, 2025
Collaborator

@PoppyS33d
Comment options

Comment options

You must be logged in to vote
1 reply
@PoppyS33d
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants