I tried to synchronize between source/target
clusters by using pg_rewind
by the following command.
And I know 100% the content of in the source/target
clusters are not the same anymore.
/usr/pgsql-12/bin/pg_rewind --source-server="192.168.100.100 user=postgres password=mypassword" -D /var/lib/pgsql/12/data --progress
but pg_rewind
gives the following message
pg_rewind: source and target cluster are on the same timeline
pg_rewind: no rewind required
I didn't understand how the content of pg_wal
& base
directories are different between source/target
but pg_rewind
did't realize that !!