mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Make pg_rewind skip files and directories that are removed during server start.
The target cluster that was rewound needs to perform recovery from the checkpoint created at failover, which leads it to remove or recreate some files and directories that may have been copied from the source cluster. So pg_rewind can skip synchronizing such files and directories, and which reduces the amount of data transferred during a rewind without changing the usefulness of the operation. Author: Michael Paquier Reviewed-by: Anastasia Lubennikova, Stephen Frost and me Discussion: https://postgr.es/m/20180205071022.GA17337@paquier.xyz
This commit is contained in:
@ -231,7 +231,19 @@ PostgreSQL documentation
|
||||
<para>
|
||||
Copy all other files such as <filename>pg_xact</filename> and
|
||||
configuration files from the source cluster to the target cluster
|
||||
(everything except the relation files).
|
||||
(everything except the relation files). Similarly to base backups,
|
||||
the contents of the directories <filename>pg_dynshmem/</filename>,
|
||||
<filename>pg_notify/</filename>, <filename>pg_replslot/</filename>,
|
||||
<filename>pg_serial/</filename>, <filename>pg_snapshots/</filename>,
|
||||
<filename>pg_stat_tmp/</filename>, and
|
||||
<filename>pg_subtrans/</filename> are omitted from the data copied
|
||||
from the source cluster. Any file or directory beginning with
|
||||
<filename>pgsql_tmp</filename> is omitted, as well as are
|
||||
<filename>backup_label</filename>,
|
||||
<filename>tablespace_map</filename>,
|
||||
<filename>pg_internal.init</filename>,
|
||||
<filename>postmaster.opts</filename> and
|
||||
<filename>postmaster.pid</filename>.
|
||||
</para>
|
||||
</step>
|
||||
<step>
|
||||
|
Reference in New Issue
Block a user