Open BacLuc opened 9 months ago
The following things did not help:
CENSORED=> SET search_path = public;
SET
CENSORED=> show search_path;
search_path
-------------
public
(1 row)
CENSORED=> ALTER ROLE CENSORED RESET search_path;
ALTER ROLE
CENSORED=> show search_path;
search_path
-----------------
"$user", public
(1 row)
GRANT ALL PRIVILEGES ON DATABASE CENSORED TO CENSORED;
I leave it for now. One expectation is that if we delete the database and let it be recreated by the cluster, the problem will disappear. I could not reproduce the problem on my fork with dev deployments, pr deployments, staging deployments or prod deployments. (all in the dev cluster of course) But if the problem still exists in staging or in prod, this is not a feasable solution.
It also does not stop us from using the backups. If you run a normal dev deployment later, the migration works and you can use the restore data.
Maybe exporting the db without a user is not a good idea, or the dev database is somewhat special.