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
message:"canceling statement due to conflict with recovery"
detail:"User query might have needed to see row versions that must be removed."
message:"terminating connection due to conflict with recovery"
detail:"User query might have needed to see row versions that must be removed."
hint:"In a moment you should be able to reconnect to the database and repeat your command."
Not sure if PostgREST should try to reconnect or not in these cases, since a solution is to set max_standby_archive_delay and max_standby_streaming_delay in PG config to avoid the error.
The text was updated successfully, but these errors were encountered:
Environment
Description of issue
PostgREST logged the following (requests queries redacted):
As seen above it does not log the 503 error (when it should) and retries connection immediately. For instance, the 500 errors are logged correctly:
Now, checking the PostgreSQL logs, it shows that it's an error related to conflicts between the replica and the primary db. In particular, it shows these two errors:
Not sure if PostgREST should try to reconnect or not in these cases, since a solution is to set
max_standby_archive_delay
andmax_standby_streaming_delay
in PG config to avoid the error.The text was updated successfully, but these errors were encountered: