Commit 9e101cf6 authored by Andres Freund's avatar Andres Freund

docs: replace 'master' with 'primary' where appropriate.

Also changed "in the primary" to "on the primary", and added a few
"the" before "primary".

Author: Andres Freund
Reviewed-By: David Steele
Discussion: https://postgr.es/m/20200615182235.x7lch5n6kcjq4aue@alap3.anarazel.de
parent e0763364
...@@ -253,7 +253,7 @@ SET client_min_messages = DEBUG1; ...@@ -253,7 +253,7 @@ SET client_min_messages = DEBUG1;
implies that operating system collation rules must never change. implies that operating system collation rules must never change.
Though rare, updates to operating system collation rules can Though rare, updates to operating system collation rules can
cause these issues. More commonly, an inconsistency in the cause these issues. More commonly, an inconsistency in the
collation order between a master server and a standby server is collation order between a primary server and a standby server is
implicated, possibly because the <emphasis>major</emphasis> operating implicated, possibly because the <emphasis>major</emphasis> operating
system version in use is inconsistent. Such inconsistencies will system version in use is inconsistent. Such inconsistencies will
generally only arise on standby servers, and so can generally generally only arise on standby servers, and so can generally
......
...@@ -964,7 +964,7 @@ SELECT * FROM pg_stop_backup(false, true); ...@@ -964,7 +964,7 @@ SELECT * FROM pg_stop_backup(false, true);
non-exclusive one, but it differs in a few key steps. This type of non-exclusive one, but it differs in a few key steps. This type of
backup can only be taken on a primary and does not allow concurrent backup can only be taken on a primary and does not allow concurrent
backups. Moreover, because it creates a backup label file, as backups. Moreover, because it creates a backup label file, as
described below, it can block automatic restart of the master server described below, it can block automatic restart of the primary server
after a crash. On the other hand, the erroneous removal of this after a crash. On the other hand, the erroneous removal of this
file from a backup or standby is a common mistake, which can result file from a backup or standby is a common mistake, which can result
in serious data corruption. If it is necessary to use this method, in serious data corruption. If it is necessary to use this method,
...@@ -1033,9 +1033,9 @@ SELECT pg_start_backup('label', true); ...@@ -1033,9 +1033,9 @@ SELECT pg_start_backup('label', true);
this will result in corruption. Confusion about when it is appropriate this will result in corruption. Confusion about when it is appropriate
to remove this file is a common cause of data corruption when using this to remove this file is a common cause of data corruption when using this
method; be very certain that you remove the file only on an existing method; be very certain that you remove the file only on an existing
master and never when building a standby or restoring a backup, even if primary and never when building a standby or restoring a backup, even if
you are building a standby that will subsequently be promoted to a new you are building a standby that will subsequently be promoted to a new
master. primary.
</para> </para>
</listitem> </listitem>
<listitem> <listitem>
...@@ -1128,16 +1128,16 @@ SELECT pg_stop_backup(); ...@@ -1128,16 +1128,16 @@ SELECT pg_stop_backup();
<para> <para>
It is often a good idea to also omit from the backup the files It is often a good idea to also omit from the backup the files
within the cluster's <filename>pg_replslot/</filename> directory, so that within the cluster's <filename>pg_replslot/</filename> directory, so that
replication slots that exist on the master do not become part of the replication slots that exist on the primary do not become part of the
backup. Otherwise, the subsequent use of the backup to create a standby backup. Otherwise, the subsequent use of the backup to create a standby
may result in indefinite retention of WAL files on the standby, and may result in indefinite retention of WAL files on the standby, and
possibly bloat on the master if hot standby feedback is enabled, because possibly bloat on the primary if hot standby feedback is enabled, because
the clients that are using those replication slots will still be connecting the clients that are using those replication slots will still be connecting
to and updating the slots on the master, not the standby. Even if the to and updating the slots on the primary, not the standby. Even if the
backup is only intended for use in creating a new master, copying the backup is only intended for use in creating a new primary, copying the
replication slots isn't expected to be particularly useful, since the replication slots isn't expected to be particularly useful, since the
contents of those slots will likely be badly out of date by the time contents of those slots will likely be badly out of date by the time
the new master comes on line. the new primary comes on line.
</para> </para>
<para> <para>
......
...@@ -697,7 +697,7 @@ include_dir 'conf.d' ...@@ -697,7 +697,7 @@ include_dir 'conf.d'
<para> <para>
When running a standby server, you must set this parameter to the When running a standby server, you must set this parameter to the
same or higher value than on the master server. Otherwise, queries same or higher value than on the primary server. Otherwise, queries
will not be allowed in the standby server. will not be allowed in the standby server.
</para> </para>
</listitem> </listitem>
...@@ -1643,7 +1643,7 @@ include_dir 'conf.d' ...@@ -1643,7 +1643,7 @@ include_dir 'conf.d'
<para> <para>
When running a standby server, you must set this parameter to the When running a standby server, you must set this parameter to the
same or higher value than on the master server. Otherwise, queries same or higher value than on the primary server. Otherwise, queries
will not be allowed in the standby server. will not be allowed in the standby server.
</para> </para>
</listitem> </listitem>
...@@ -2259,7 +2259,7 @@ include_dir 'conf.d' ...@@ -2259,7 +2259,7 @@ include_dir 'conf.d'
<para> <para>
When running a standby server, you must set this parameter to the When running a standby server, you must set this parameter to the
same or higher value than on the master server. Otherwise, queries same or higher value than on the primary server. Otherwise, queries
will not be allowed in the standby server. will not be allowed in the standby server.
</para> </para>
...@@ -3253,7 +3253,7 @@ include_dir 'conf.d' ...@@ -3253,7 +3253,7 @@ include_dir 'conf.d'
<varname>archive_timeout</varname> &mdash; it will bloat your archive <varname>archive_timeout</varname> &mdash; it will bloat your archive
storage. <varname>archive_timeout</varname> settings of a minute or so are storage. <varname>archive_timeout</varname> settings of a minute or so are
usually reasonable. You should consider using streaming replication, usually reasonable. You should consider using streaming replication,
instead of archiving, if you want data to be copied off the master instead of archiving, if you want data to be copied off the primary
server more quickly than that. server more quickly than that.
If this value is specified without units, it is taken as seconds. If this value is specified without units, it is taken as seconds.
This parameter can only be set in the This parameter can only be set in the
...@@ -3678,12 +3678,12 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows ...@@ -3678,12 +3678,12 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
These settings control the behavior of the built-in These settings control the behavior of the built-in
<firstterm>streaming replication</firstterm> feature (see <firstterm>streaming replication</firstterm> feature (see
<xref linkend="streaming-replication"/>). Servers will be either a <xref linkend="streaming-replication"/>). Servers will be either a
master or a standby server. Masters can send data, while standbys primary or a standby server. Primaries can send data, while standbys
are always receivers of replicated data. When cascading replication are always receivers of replicated data. When cascading replication
(see <xref linkend="cascading-replication"/>) is used, standby servers (see <xref linkend="cascading-replication"/>) is used, standby servers
can also be senders, as well as receivers. can also be senders, as well as receivers.
Parameters are mainly for sending and standby servers, though some Parameters are mainly for sending and standby servers, though some
parameters have meaning only on the master server. Settings may vary parameters have meaning only on the primary server. Settings may vary
across the cluster without problems if that is required. across the cluster without problems if that is required.
</para> </para>
...@@ -3693,10 +3693,10 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows ...@@ -3693,10 +3693,10 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
<para> <para>
These parameters can be set on any server that is These parameters can be set on any server that is
to send replication data to one or more standby servers. to send replication data to one or more standby servers.
The master is always a sending server, so these parameters must The primary is always a sending server, so these parameters must
always be set on the master. always be set on the primary.
The role and meaning of these parameters does not change after a The role and meaning of these parameters does not change after a
standby becomes the master. standby becomes the primary.
</para> </para>
<variablelist> <variablelist>
...@@ -3724,7 +3724,7 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows ...@@ -3724,7 +3724,7 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
<para> <para>
When running a standby server, you must set this parameter to the When running a standby server, you must set this parameter to the
same or higher value than on the master server. Otherwise, queries same or higher value than on the primary server. Otherwise, queries
will not be allowed in the standby server. will not be allowed in the standby server.
</para> </para>
</listitem> </listitem>
...@@ -3855,19 +3855,19 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows ...@@ -3855,19 +3855,19 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
</variablelist> </variablelist>
</sect2> </sect2>
<sect2 id="runtime-config-replication-master"> <sect2 id="runtime-config-replication-primary">
<title>Master Server</title> <title>Primary Server</title>
<para> <para>
These parameters can be set on the master/primary server that is These parameters can be set on the primary server that is
to send replication data to one or more standby servers. to send replication data to one or more standby servers.
Note that in addition to these parameters, Note that in addition to these parameters,
<xref linkend="guc-wal-level"/> must be set appropriately on the master <xref linkend="guc-wal-level"/> must be set appropriately on the primary
server, and optionally WAL archiving can be enabled as server, and optionally WAL archiving can be enabled as
well (see <xref linkend="runtime-config-wal-archiving"/>). well (see <xref linkend="runtime-config-wal-archiving"/>).
The values of these parameters on standby servers are irrelevant, The values of these parameters on standby servers are irrelevant,
although you may wish to set them there in preparation for the although you may wish to set them there in preparation for the
possibility of a standby becoming the master. possibility of a standby becoming the primary.
</para> </para>
<variablelist> <variablelist>
...@@ -4042,7 +4042,7 @@ ANY <replaceable class="parameter">num_sync</replaceable> ( <replaceable class=" ...@@ -4042,7 +4042,7 @@ ANY <replaceable class="parameter">num_sync</replaceable> ( <replaceable class="
<para> <para>
These settings control the behavior of a standby server that is These settings control the behavior of a standby server that is
to receive replication data. Their values on the master server to receive replication data. Their values on the primary server
are irrelevant. are irrelevant.
</para> </para>
...@@ -4369,7 +4369,7 @@ ANY <replaceable class="parameter">num_sync</replaceable> ( <replaceable class=" ...@@ -4369,7 +4369,7 @@ ANY <replaceable class="parameter">num_sync</replaceable> ( <replaceable class="
of time. For example, if of time. For example, if
you set this parameter to <literal>5min</literal>, the standby will you set this parameter to <literal>5min</literal>, the standby will
replay each transaction commit only when the system time on the standby replay each transaction commit only when the system time on the standby
is at least five minutes past the commit time reported by the master. is at least five minutes past the commit time reported by the primary.
If this value is specified without units, it is taken as milliseconds. If this value is specified without units, it is taken as milliseconds.
The default is zero, adding no delay. The default is zero, adding no delay.
</para> </para>
...@@ -4377,10 +4377,10 @@ ANY <replaceable class="parameter">num_sync</replaceable> ( <replaceable class=" ...@@ -4377,10 +4377,10 @@ ANY <replaceable class="parameter">num_sync</replaceable> ( <replaceable class="
It is possible that the replication delay between servers exceeds the It is possible that the replication delay between servers exceeds the
value of this parameter, in which case no delay is added. value of this parameter, in which case no delay is added.
Note that the delay is calculated between the WAL time stamp as written Note that the delay is calculated between the WAL time stamp as written
on master and the current time on the standby. Delays in transfer on primary and the current time on the standby. Delays in transfer
because of network lag or cascading replication configurations because of network lag or cascading replication configurations
may reduce the actual wait time significantly. If the system may reduce the actual wait time significantly. If the system
clocks on master and standby are not synchronized, this may lead to clocks on primary and standby are not synchronized, this may lead to
recovery applying records earlier than expected; but that is not a recovery applying records earlier than expected; but that is not a
major issue because useful settings of this parameter are much larger major issue because useful settings of this parameter are much larger
than typical time deviations between servers. than typical time deviations between servers.
...@@ -4402,7 +4402,7 @@ ANY <replaceable class="parameter">num_sync</replaceable> ( <replaceable class=" ...@@ -4402,7 +4402,7 @@ ANY <replaceable class="parameter">num_sync</replaceable> ( <replaceable class="
except crash recovery. except crash recovery.
<varname>hot_standby_feedback</varname> will be delayed by use of this feature <varname>hot_standby_feedback</varname> will be delayed by use of this feature
which could lead to bloat on the master; use both together with care. which could lead to bloat on the primary; use both together with care.
<warning> <warning>
<para> <para>
...@@ -8998,7 +8998,7 @@ dynamic_library_path = 'C:\tools\postgresql;H:\my_project\lib;$libdir' ...@@ -8998,7 +8998,7 @@ dynamic_library_path = 'C:\tools\postgresql;H:\my_project\lib;$libdir'
<para> <para>
When running a standby server, you must set this parameter to the When running a standby server, you must set this parameter to the
same or higher value than on the master server. Otherwise, queries same or higher value than on the primary server. Otherwise, queries
will not be allowed in the standby server. will not be allowed in the standby server.
</para> </para>
</listitem> </listitem>
......
...@@ -244,7 +244,7 @@ ...@@ -244,7 +244,7 @@
<productname>PostgreSQL</productname> replication solutions can be developed <productname>PostgreSQL</productname> replication solutions can be developed
externally. For example, <application> <ulink externally. For example, <application> <ulink
url="http://www.slony.info">Slony-I</ulink></application> is a popular url="http://www.slony.info">Slony-I</ulink></application> is a popular
master/standby replication solution that is developed independently primary/standby replication solution that is developed independently
from the core project. from the core project.
</para> </para>
</sect1> </sect1>
......
This diff is collapsed.
...@@ -7362,7 +7362,7 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough) ...@@ -7362,7 +7362,7 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
the <literal>host</literal> parameter the <literal>host</literal> parameter
matches <application>libpq</application>'s default socket directory path. matches <application>libpq</application>'s default socket directory path.
In a standby server, a database field of <literal>replication</literal> In a standby server, a database field of <literal>replication</literal>
matches streaming replication connections made to the master server. matches streaming replication connections made to the primary server.
The database field is of limited usefulness otherwise, because users have The database field is of limited usefulness otherwise, because users have
the same password for all databases in the same cluster. the same password for all databases in the same cluster.
</para> </para>
......
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
<para> <para>
A <firstterm>publication</firstterm> can be defined on any physical A <firstterm>publication</firstterm> can be defined on any physical
replication master. The node where a publication is defined is referred to replication primary. The node where a publication is defined is referred to
as <firstterm>publisher</firstterm>. A publication is a set of changes as <firstterm>publisher</firstterm>. A publication is a set of changes
generated from a table or a group of tables, and might also be described as generated from a table or a group of tables, and might also be described as
a change set or replication set. Each publication exists in only one database. a change set or replication set. Each publication exists in only one database.
...@@ -489,7 +489,7 @@ ...@@ -489,7 +489,7 @@
Because logical replication is based on a similar architecture as Because logical replication is based on a similar architecture as
<link linkend="streaming-replication">physical streaming replication</link>, <link linkend="streaming-replication">physical streaming replication</link>,
the monitoring on a publication node is similar to monitoring of a the monitoring on a publication node is similar to monitoring of a
physical replication master physical replication primary
(see <xref linkend="streaming-replication-monitoring"/>). (see <xref linkend="streaming-replication-monitoring"/>).
</para> </para>
......
...@@ -62,10 +62,10 @@ postgres 15610 0.0 0.0 58772 3056 ? Ss 18:07 0:00 postgres: tgl ...@@ -62,10 +62,10 @@ postgres 15610 0.0 0.0 58772 3056 ? Ss 18:07 0:00 postgres: tgl
(The appropriate invocation of <command>ps</command> varies across different (The appropriate invocation of <command>ps</command> varies across different
platforms, as do the details of what is shown. This example is from a platforms, as do the details of what is shown. This example is from a
recent Linux system.) The first process listed here is the recent Linux system.) The first process listed here is the
master server process. The command arguments primary server process. The command arguments
shown for it are the same ones used when it was launched. The next five shown for it are the same ones used when it was launched. The next five
processes are background worker processes automatically launched by the processes are background worker processes automatically launched by the
master process. (The <quote>stats collector</quote> process will not be present primary process. (The <quote>stats collector</quote> process will not be present
if you have set the system not to start the statistics collector; likewise if you have set the system not to start the statistics collector; likewise
the <quote>autovacuum launcher</quote> process can be disabled.) the <quote>autovacuum launcher</quote> process can be disabled.)
Each of the remaining Each of the remaining
...@@ -3545,7 +3545,7 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i ...@@ -3545,7 +3545,7 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i
one row per database, showing database-wide statistics about one row per database, showing database-wide statistics about
query cancels occurring due to conflicts with recovery on standby servers. query cancels occurring due to conflicts with recovery on standby servers.
This view will only contain information on standby servers, since This view will only contain information on standby servers, since
conflicts do not occur on master servers. conflicts do not occur on primary servers.
</para> </para>
<table id="pg-stat-database-conflicts-view" xreflabel="pg_stat_database_conflicts"> <table id="pg-stat-database-conflicts-view" xreflabel="pg_stat_database_conflicts">
......
...@@ -1642,7 +1642,7 @@ SELECT pg_advisory_lock(q.id) FROM ...@@ -1642,7 +1642,7 @@ SELECT pg_advisory_lock(q.id) FROM
This level of integrity protection using Serializable transactions This level of integrity protection using Serializable transactions
does not yet extend to hot standby mode (<xref linkend="hot-standby"/>). does not yet extend to hot standby mode (<xref linkend="hot-standby"/>).
Because of that, those using hot standby may want to use Repeatable Because of that, those using hot standby may want to use Repeatable
Read and explicit locking on the master. Read and explicit locking on the primary.
</para> </para>
</warning> </warning>
</sect2> </sect2>
...@@ -1744,10 +1744,10 @@ SELECT pg_advisory_lock(q.id) FROM ...@@ -1744,10 +1744,10 @@ SELECT pg_advisory_lock(q.id) FROM
<xref linkend="hot-standby"/>). The strictest isolation level currently <xref linkend="hot-standby"/>). The strictest isolation level currently
supported in hot standby mode is Repeatable Read. While performing all supported in hot standby mode is Repeatable Read. While performing all
permanent database writes within Serializable transactions on the permanent database writes within Serializable transactions on the
master will ensure that all standbys will eventually reach a consistent primary will ensure that all standbys will eventually reach a consistent
state, a Repeatable Read transaction run on the standby can sometimes state, a Repeatable Read transaction run on the standby can sometimes
see a transient state that is inconsistent with any serial execution see a transient state that is inconsistent with any serial execution
of the transactions on the master. of the transactions on the primary.
</para> </para>
<para> <para>
......
...@@ -73,7 +73,7 @@ restore_command = 'pg_standby <replaceable>archiveDir</replaceable> %f %p %r' ...@@ -73,7 +73,7 @@ restore_command = 'pg_standby <replaceable>archiveDir</replaceable> %f %p %r'
</para> </para>
<para> <para>
There are two ways to fail over to a <quote>warm standby</quote> database server There are two ways to fail over to a <quote>warm standby</quote> database server
when the master server fails: when the primary server fails:
<variablelist> <variablelist>
<varlistentry> <varlistentry>
......
...@@ -1793,7 +1793,7 @@ The commands accepted in replication mode are: ...@@ -1793,7 +1793,7 @@ The commands accepted in replication mode are:
<listitem> <listitem>
<para> <para>
Current timeline ID. Also useful to check that the standby is Current timeline ID. Also useful to check that the standby is
consistent with the master. consistent with the primary.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
......
...@@ -65,11 +65,11 @@ PostgreSQL documentation ...@@ -65,11 +65,11 @@ PostgreSQL documentation
<para> <para>
<application>pg_basebackup</application> can make a base backup from <application>pg_basebackup</application> can make a base backup from
not only the master but also the standby. To take a backup from the standby, not only the primary but also the standby. To take a backup from the standby,
set up the standby so that it can accept replication connections (that is, set set up the standby so that it can accept replication connections (that is, set
<varname>max_wal_senders</varname> and <xref linkend="guc-hot-standby"/>, <varname>max_wal_senders</varname> and <xref linkend="guc-hot-standby"/>,
and configure <link linkend="auth-pg-hba-conf">host-based authentication</link>). and configure <link linkend="auth-pg-hba-conf">host-based authentication</link>).
You will also need to enable <xref linkend="guc-full-page-writes"/> on the master. You will also need to enable <xref linkend="guc-full-page-writes"/> on the primary.
</para> </para>
<para> <para>
...@@ -89,13 +89,13 @@ PostgreSQL documentation ...@@ -89,13 +89,13 @@ PostgreSQL documentation
</listitem> </listitem>
<listitem> <listitem>
<para> <para>
If the standby is promoted to the master during online backup, the backup fails. If the standby is promoted to the primary during online backup, the backup fails.
</para> </para>
</listitem> </listitem>
<listitem> <listitem>
<para> <para>
All WAL records required for the backup must contain sufficient full-page writes, All WAL records required for the backup must contain sufficient full-page writes,
which requires you to enable <varname>full_page_writes</varname> on the master and which requires you to enable <varname>full_page_writes</varname> on the primary and
not to use a tool like <application>pg_compresslog</application> as not to use a tool like <application>pg_compresslog</application> as
<varname>archive_command</varname> to remove full-page writes from WAL files. <varname>archive_command</varname> to remove full-page writes from WAL files.
</para> </para>
...@@ -328,7 +328,7 @@ PostgreSQL documentation ...@@ -328,7 +328,7 @@ PostgreSQL documentation
it will use up two connections configured by the it will use up two connections configured by the
<xref linkend="guc-max-wal-senders"/> parameter. As long as the <xref linkend="guc-max-wal-senders"/> parameter. As long as the
client can keep up with write-ahead log received, using this mode client can keep up with write-ahead log received, using this mode
requires no extra write-ahead logs to be saved on the master. requires no extra write-ahead logs to be saved on the primary.
</para> </para>
<para> <para>
When tar format mode is used, the write-ahead log files will be When tar format mode is used, the write-ahead log files will be
......
...@@ -43,8 +43,8 @@ PostgreSQL documentation ...@@ -43,8 +43,8 @@ PostgreSQL documentation
<para> <para>
<application>pg_rewind</application> is a tool for synchronizing a PostgreSQL cluster <application>pg_rewind</application> is a tool for synchronizing a PostgreSQL cluster
with another copy of the same cluster, after the clusters' timelines have with another copy of the same cluster, after the clusters' timelines have
diverged. A typical scenario is to bring an old master server back online diverged. A typical scenario is to bring an old primary server back online
after failover as a standby that follows the new master. after failover as a standby that follows the new primary.
</para> </para>
<para> <para>
......
...@@ -1864,9 +1864,9 @@ pg_dumpall -p 5432 | psql -d postgres -p 5433 ...@@ -1864,9 +1864,9 @@ pg_dumpall -p 5432 | psql -d postgres -p 5433
This is possible because logical replication supports This is possible because logical replication supports
replication between different major versions of replication between different major versions of
<productname>PostgreSQL</productname>. The standby can be on the same computer or <productname>PostgreSQL</productname>. The standby can be on the same computer or
a different computer. Once it has synced up with the master server a different computer. Once it has synced up with the primary server
(running the older version of <productname>PostgreSQL</productname>), you can (running the older version of <productname>PostgreSQL</productname>), you can
switch masters and make the standby the master and shut down the older switch primaries and make the standby the primary and shut down the older
database instance. Such a switch-over results in only several seconds database instance. Such a switch-over results in only several seconds
of downtime for an upgrade. of downtime for an upgrade.
</para> </para>
......
...@@ -596,8 +596,8 @@ ...@@ -596,8 +596,8 @@
indicate that the already-processed WAL data need not be scanned again, indicate that the already-processed WAL data need not be scanned again,
and then recycles any old log segment files in the <filename>pg_wal</filename> and then recycles any old log segment files in the <filename>pg_wal</filename>
directory. directory.
Restartpoints can't be performed more frequently than checkpoints in the Restartpoints can't be performed more frequently than checkpoints on the
master because restartpoints can only be performed at checkpoint records. primary because restartpoints can only be performed at checkpoint records.
A restartpoint is triggered when a checkpoint record is reached if at A restartpoint is triggered when a checkpoint record is reached if at
least <varname>checkpoint_timeout</varname> seconds have passed since the last least <varname>checkpoint_timeout</varname> seconds have passed since the last
restartpoint, or if WAL size is about to exceed restartpoint, or if WAL size is about to exceed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment