repmgr: add code comment about pg_stat_tmp in PostgreSQL 15+

See core commit 6f0cf8787.
This commit is contained in:
Ian Barwick
2022-05-15 15:19:02 +09:00
committed by Ian Barwick
parent 99c3b42921
commit 9264680bdc

View File

@@ -3192,6 +3192,11 @@ copy_remote_files(char *host, char *remote_user, char *remote_path,
" --exclude=pg_xlog/* --exclude=pg_log/*"); " --exclude=pg_xlog/* --exclude=pg_log/*");
} }
/*
* From PostgreSQL 15, the core server no longer uses pg_stat_tmp,
* but some extensions (e.g. pg_stat_statements) may still do, so
* keep excluding it.
*/
appendPQExpBufferStr(&rsync_flags, appendPQExpBufferStr(&rsync_flags,
" --exclude=pg_stat_tmp/*"); " --exclude=pg_stat_tmp/*");