Hi Jan,
Thanks for the patches. With 0001 to 0003 the database is still lost
if it is moved twice, like ALTER DATABASE SET TABLESPACE ts1 and then
ts2. The first replay copies an empty placeholder into ts1, and the
second one copies that over the real database in ts2.
Maybe 0003 could also keep the target when the source has no
PG_VERSION?
Thanks,
Shihao