public inbox for [email protected]  
help / color / mirror / Atom feed
Backup failure Postgres
2+ messages / 2 participants
[nested] [flat]

* Backup failure Postgres
@ 2024-05-23 08:02  Jethish Jethish <[email protected]>
  0 siblings, 1 reply; 2+ messages in thread

From: Jethish Jethish @ 2024-05-23 08:02 UTC (permalink / raw)
  To: [email protected]

I'm frequently facing the below error while performing backup. Someone
please tell how solve this issues.


Failed : pg_dump: error: Dumping the contents of table "botsession" failed:
PQgetResult() failed. pg_dump: error: Error message from server: ERROR:
canceling statement due to conflict with recovery DETAIL: User query might
have needed to see row versions that must be removed. pg_dump: error: The
command was: COPY public.botsession (id, userid, data, iscompressed) TO
stdout;


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Backup failure Postgres
@ 2024-05-23 10:23  Torsten Förtsch <[email protected]>
  parent: Jethish Jethish <[email protected]>
  0 siblings, 0 replies; 2+ messages in thread

From: Torsten Förtsch @ 2024-05-23 10:23 UTC (permalink / raw)
  To: Jethish Jethish <[email protected]>; +Cc: [email protected]

As the error message says, your query was aborted due to it conflicting
with recovery. There are many ways to deal with that. You could enable
hot_standby_feedback on the replica. You could disconnect the replica from
the master for the time the COPY takes (reset primary_conninfo). You could
increase max_standby_streaming_delay. Perhaps you could also wrap the COPY
operation in pg_wal_replay_pause() / pg_wal_replay_resume().

On Thu, May 23, 2024 at 11:59 AM Jethish Jethish <[email protected]>
wrote:

> I'm frequently facing the below error while performing backup. Someone
> please tell how solve this issues.
>
>
> Failed : pg_dump: error: Dumping the contents of table "botsession"
> failed: PQgetResult() failed. pg_dump: error: Error message from server:
> ERROR: canceling statement due to conflict with recovery DETAIL: User query
> might have needed to see row versions that must be removed. pg_dump: error:
> The command was: COPY public.botsession (id, userid, data, iscompressed) TO
> stdout;
>


^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2024-05-23 10:23 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-05-23 08:02 Backup failure Postgres Jethish Jethish <[email protected]>
2024-05-23 10:23 ` Torsten Förtsch <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox