Comments (4)
After restoration, I launched the following command to remove the warning:
docker exec -i teslamate-db psql -U teslamate <<<"ALTER DATABASE teslamate REFRESH COLLATION VERSION"
from teslamate.
Can you please share your restore steps in detail? As https://docs.teslamate.org/docs/maintenance/backup_restore should cover the migration
from teslamate.
Backup achieved with:
docker exec teslamate-db pg_dump -U teslamate teslamate | gzip --rsyncable - >teslamate-database.sql.gz
Restoration with:
docker exec -i teslamate-db psql -U teslamate <<EOF
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';
EOF
zcat teslamate-database.sql.gz | docker exec -i teslamate-db psql -U teslamate
# Now with this additional step
docker exec -i teslamate-db psql -U teslamate <<<"ALTER DATABASE teslamate REFRESH COLLATION VERSION"
from teslamate.
Thanks a lot!
So we need to include the Collation version in the migration. Thanks for your research!
from teslamate.
Related Issues (20)
- Programatic way to cancel sleep attempt HOT 10
- Grafana drive details map jumping back and forth HOT 10
- "Too many disconnects from streaming API" error HOT 3
- Dynamically varying the polling frequency HOT 2
- Cannot fetch MQTT for a hosted instance of Teslamate HOT 2
- Different values for Logged Distance HOT 4
- Should pin image full version as in elixir:1.16.1-otp-26 HOT 7
- switch netcat-traditional to netcat-openbsd for IP v6 support HOT 1
- Battery health issue HOT 7
- random test failures HOT 19
- MQTT values for active_route_* are not clearing HOT 10
- Idea: add lease mileage limit with start/end dates HOT 1
- Upgrading via docker-compose from v1.28.3 to v1.28.4 results in unusable system with "404 page not found" error HOT 14
- Vehicle showing offline instead of asleep since 2024.8.x software update HOT 2
- doc: version tag in docker-compose.yml is obsolete since docker 25.05
- lost current charge record HOT 2
- Unexpected Relationship between Range (rated) and Range (est.) in Internal Drives Dashboard, Drive panel HOT 11
- 1.28.4 fails to start, 1.28.3 works fine HOT 2
- v1.28.4 fails to start with Permission denied error HOT 23
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from teslamate.