'I want to set the Streaming replication between two different postgresql versions

my primary server is Postgresql-9.4 and the secondary server is Postgresql-13, I followed all the steps but while restarting the secondary server, I am facing the error "An old version of the database format was found. You need to dump and reload before using PostgreSQL 13." how I should resolve it.



Solution 1:[1]

You cannot have streaming replication between different PostgreSQL versions, and you cannot have logical replication with versions less than v10.

You will have to use trigger-based replication like with Slony-I.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Laurenz Albe