You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run restore, no data is changed and the restore logs have alots of errors due to conflicts. In order to get a successful restore, I have perform the following CLI commands first
Revoke new connections
psql -U webadmin -d postgres -c "REVOKE CONNECT ON DATABASE dbname FROM PUBLIC, username;"
Kill existing sessions
psql -U webadmin -d postgres -c "SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE pid <> pg_backend_pid() AND datname = 'dbname'"
Note: Since we have our application level DB user, we need to make sure that it does not reconnect during the restore process so that I can perform an uninterrupted restore.
Logs from restore without performing the above steps:
When I run restore, no data is changed and the restore logs have alots of errors due to conflicts. In order to get a successful restore, I have perform the following CLI commands first
Note: Since we have our application level DB user, we need to make sure that it does not reconnect during the restore process so that I can perform an uninterrupted restore.
Logs from restore without performing the above steps:
The text was updated successfully, but these errors were encountered: