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
parent de343f0cbe
commit ea689d17b5

View File

@@ -3187,6 +3187,11 @@ copy_remote_files(char *host, char *remote_user, char *remote_path,
" --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,
" --exclude=pg_stat_tmp/*");