Common database issue solutions
https://github.com/teslamate-org/teslamate/discussions/1622
https://github.com/docker-library/postgres/issues/158
Identify the Corrupt Relation
The relation causing the issue is represented by base/16384/16392 in your error message. To identify which table or index this corresponds to:
- Use the PostgreSQL oid2name utility (replace 16392 with the relevant ID):
oid2name -f 16392
Alternatively, query pg_class in the database:
SELECT relname, relkind
FROM pg_class
WHERE relfilenode = 16392;
docker run -it -v <docker_volume_name>:<PGDATA_path> postgres:16 /bin/bash