gunni
06/06/2024, 8:43 AMpg_dump -Fd -j 4 -b -v -f "<filename>" -U <user> -d <db> -h <host>
to take a backup and pg_restore -Fd -j 4 -v -U <user> -h <host> -d <db> <filename>
to restore the data.
Everything looked ok in the DB. We could see all the relationships and the schema but any query to read the schema or check some permission would fail saying `rpc error: code = FailedPrecondition desc = object definition thing
not found`. And reading the schema gave us grpc_message:\"No schema has been defined; please call WriteSchema to start\"
even though the schema existed in the db and we had already called the writeschema method with our schema.
We ended up "solving" the issue by deleting all the rows in the namespace_config
table and calling WriteSchema again.
Should we have done something differently during the migration or?vroldanbet
06/06/2024, 8:50 AMspicedb datastore repair
to get the MVCC bits repaired. After that it should work as usual.