diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2023-01-22 14:08:46 -0500 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2023-01-22 14:08:46 -0500 |
| commit | 5a3a95385bd5a8f1a4fd50545b7efe9338581899 (patch) | |
| tree | 9c90b781d4c5ccfdfe361e179c364b34c91137ac /doc/src | |
| parent | c9f7f926484d69e2806e35343af7e472fadfede7 (diff) | |
Track logrep apply workers' last start times to avoid useless waits.
Enforce wal_retrieve_retry_interval on a per-subscription basis,
rather than globally, and arrange to skip that delay in case of
an intentional worker exit. This probably makes little difference
in the field, where apply workers wouldn't be restarted often;
but it has a significant impact on the runtime of our logical
replication regression tests (even though those tests use
artificially-small wal_retrieve_retry_interval settings already).
Nathan Bossart, with mostly-cosmetic editorialization by me
Discussion: https://postgr.es/m/20221122004119.GA132961@nathanxps13
Diffstat (limited to 'doc/src')
| -rw-r--r-- | doc/src/sgml/config.sgml | 4 | ||||
| -rw-r--r-- | doc/src/sgml/monitoring.sgml | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index dc9b78b0b7d..f985afc009d 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -4877,6 +4877,10 @@ ANY <replaceable class="parameter">num_sync</replaceable> ( <replaceable class=" environments where the number of times an infrastructure is accessed is taken into account. </para> + <para> + In logical replication, this parameter also limits how often a failing + replication apply worker will be respawned. + </para> </listitem> </varlistentry> diff --git a/doc/src/sgml/monitoring.sgml b/doc/src/sgml/monitoring.sgml index e3a783abd0f..1756f1a4b67 100644 --- a/doc/src/sgml/monitoring.sgml +++ b/doc/src/sgml/monitoring.sgml @@ -2009,6 +2009,16 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser about <quote>heavyweight</quote> locks.</entry> </row> <row> + <entry><literal>LogicalRepLauncherDSA</literal></entry> + <entry>Waiting to access logical replication launcher's dynamic shared + memory allocator.</entry> + </row> + <row> + <entry><literal>LogicalRepLauncherHash</literal></entry> + <entry>Waiting to access logical replication launcher's shared + hash table.</entry> + </row> + <row> <entry><literal>LogicalRepWorker</literal></entry> <entry>Waiting to read or update the state of logical replication workers.</entry> |
