mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Address points made in post-commit review of replication origins.
Amit reviewed the replication origins patch and made some good points. Address them. This fixes typos in error messages, docs and comments and adds a missing error check (although in a should-never-happen scenario). Discussion: CAA4eK1JqUBVeWWKwUmBPryFaje4190ug0y-OAUHWQ6tD83V4xg@mail.gmail.com Backpatch: 9.5, where replication origins were introduced.
This commit is contained in:
@ -5450,10 +5450,11 @@
|
||||
<entry><structfield>local_lsn</structfield></entry>
|
||||
<entry><type>pg_lsn</type></entry>
|
||||
<entry></entry>
|
||||
<entry>This node's LSN that at
|
||||
which <literal>remote_lsn</literal> has been replicated. Used to
|
||||
flush commit records before persisting data to disk when using
|
||||
asynchronous commits.</entry>
|
||||
<entry>
|
||||
This node's LSN at which <literal>remote_lsn</literal> has
|
||||
been replicated. Used to flush commit records before persisting
|
||||
data to disk when using asynchronous commits.
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
|
@ -17421,7 +17421,7 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
|
||||
<indexterm>
|
||||
<primary>pg_replication_origin_session_progress</primary>
|
||||
</indexterm>
|
||||
<literal><function>pg_replication_origin_progress(<parameter>flush</parameter> <type>bool</type>)</function></literal>
|
||||
<literal><function>pg_replication_origin_session_progress(<parameter>flush</parameter> <type>bool</type>)</function></literal>
|
||||
</entry>
|
||||
<entry>
|
||||
pg_lsn
|
||||
|
@ -57,7 +57,7 @@
|
||||
Using the replication origin infrastructure a session can be
|
||||
marked as replaying from a remote node (using the
|
||||
<link linkend="pg-replication-origin-session-setup"><function>pg_replication_origin_session_setup()</function></link>
|
||||
function. Additionally the <acronym>LSN</acronym> and commit
|
||||
function). Additionally the <acronym>LSN</acronym> and commit
|
||||
timestamp of every source transaction can be configured on a per
|
||||
transaction basis using
|
||||
<link linkend="pg-replication-origin-xact-setup"><function>pg_replication_origin_xact_setup()</function></link>.
|
||||
|
Reference in New Issue
Block a user