On Wed, May 7, 2025 at 3:55 PM Laurenz Albe <laurenz.a...@cybertec.at> wrote: > > I don't think it is connected to a WAL switch. >
Thanks. > I'd say that you should set "wal_keep_size" high enough that all the WAL > needed for pg_rewind is still present. > > If you have a WAL archive, you could define a restore_command on the server > you want to rewind. I've pgbackrest making backups, so I have an archive_command. I'm going to see if putting a restore_command can fix the problem. Thanks for the suggestion. Luca