You made streaming backups and restoring with walg and now trying to make logical backups.
But some shit ruined your plans:
pg_dump: Dumping the contents of table "<table>" failed: PQgetResult() failed.
Many sites suggests to enable
postgresql.conf, but actually you need also increase
max_standby_streaming_delay. I set 1 hour.
Fortune cookie: Her figure described a set of parabolas that could cause cardiac arrest in a yak. -- Woody Allen