Limited beta · What is this?

pgTrue is under active development: reports may contain significant mistakes, inaccuracies, or bugs. Please report anything you find to pgtrue@postgres.ai.

pgTrue is an independent fact-check of technical Postgres articles. Read the questions and answers.

pgTrue fact-check

ElephantSeal BLimited coverageOpen: the benchmark cannot yet be rerun from what is published

Embed

The ElephantSeal always shows this report's latest edition and links here. Copies cached elsewhere may update later.

[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585.svg?v=13&theme=light)](https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585)
<a href="https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585"><img src="https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585.svg?v=13&amp;theme=light" alt="pgTrue fact-check" width="90" height="20" loading="lazy" decoding="async" style="display:inline-block;width:90px;height:20px"></a>
https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585.svg?v=13&theme=light
.. image:: https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585.svg?v=13&theme=light
   :target: https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585
   :alt: pgTrue fact-check
   :width: 90
   :height: 20
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585.svg?v=13&theme=dark)](https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585)
<a href="https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585"><img src="https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585.svg?v=13&amp;theme=dark" alt="pgTrue fact-check" width="90" height="20" loading="lazy" decoding="async" style="display:inline-block;width:90px;height:20px"></a>
https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585.svg?v=13&theme=dark
.. image:: https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585.svg?v=13&theme=dark
   :target: https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585
   :alt: pgTrue fact-check
   :width: 90
   :height: 20
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585.svg?v=13)](https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585)
<a href="https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585"><img src="https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585.svg?v=13" alt="pgTrue fact-check" width="90" height="20" loading="lazy" decoding="async" style="display:inline-block;width:90px;height:20px"></a>
https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585.svg?v=13
.. image:: https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585.svg?v=13
   :target: https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585
   :alt: pgTrue fact-check
   :width: 90
   :height: 20
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585/radar.svg?v=13&theme=light)](https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585)
<a href="https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585"><img src="https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585/radar.svg?v=13&amp;theme=light" alt="pgTrue fact-check" width="240" height="240" loading="lazy" decoding="async" style="display:inline-block;width:240px;height:240px"></a>
https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585/radar.svg?v=13&theme=light
.. image:: https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585/radar.svg?v=13&theme=light
   :target: https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585
   :alt: pgTrue fact-check
   :width: 240
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585/radar.svg?v=13&theme=dark)](https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585)
<a href="https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585"><img src="https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585/radar.svg?v=13&amp;theme=dark" alt="pgTrue fact-check" width="240" height="240" loading="lazy" decoding="async" style="display:inline-block;width:240px;height:240px"></a>
https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585/radar.svg?v=13&theme=dark
.. image:: https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585/radar.svg?v=13&theme=dark
   :target: https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585
   :alt: pgTrue fact-check
   :width: 240
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585/radar.svg?v=13)](https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585)
<a href="https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585"><img src="https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585/radar.svg?v=13" alt="pgTrue fact-check" width="240" height="240" loading="lazy" decoding="async" style="display:inline-block;width:240px;height:240px"></a>
https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585/radar.svg?v=13
.. image:: https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585/radar.svg?v=13
   :target: https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585
   :alt: pgTrue fact-check
   :width: 240
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585/wide.svg?v=13&theme=light)](https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585)
<a href="https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585"><img src="https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585/wide.svg?v=13&amp;theme=light" alt="pgTrue fact-check" width="480" height="240" loading="lazy" decoding="async" style="display:inline-block;width:480px;height:240px"></a>
https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585/wide.svg?v=13&theme=light
.. image:: https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585/wide.svg?v=13&theme=light
   :target: https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585
   :alt: pgTrue fact-check
   :width: 480
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585/wide.svg?v=13&theme=dark)](https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585)
<a href="https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585"><img src="https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585/wide.svg?v=13&amp;theme=dark" alt="pgTrue fact-check" width="480" height="240" loading="lazy" decoding="async" style="display:inline-block;width:480px;height:240px"></a>
https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585/wide.svg?v=13&theme=dark
.. image:: https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585/wide.svg?v=13&theme=dark
   :target: https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585
   :alt: pgTrue fact-check
   :width: 480
   :height: 240
[![pgTrue fact-check](https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585/wide.svg?v=13)](https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585)
<a href="https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585"><img src="https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585/wide.svg?v=13" alt="pgTrue fact-check" width="480" height="240" loading="lazy" decoding="async" style="display:inline-block;width:480px;height:240px"></a>
https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585/wide.svg?v=13
.. image:: https://pgtrue.postgres.ai/badge/09e52a93-c3a5-4d0c-9ccb-404c4cd92585/wide.svg?v=13
   :target: https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585
   :alt: pgTrue fact-check
   :width: 480
   :height: 240

Click the snippet to select all of it, then copy. Where SVG is stripped, as in some email clients and feed readers, change .svg to .png. PNG uses the light theme for Auto. For Markdown PNG embeds, use the HTML snippet where supported to preserve the display size.

Optional colours: append &color=26798E or &labelColor=333C47 after a theme query (use ? for the first parameter). Use 3- or 6-digit hex.

For pages with a light background.

For pages with a dark background. The ElephantSeal gets a thin edge so it does not blend in.

Auto follows the reader's light or dark setting where the host supports it, and shows the light ElephantSeal where it does not.

On a light page
On a dark page

All Your GUCs in a Row: max_parallel_apply_workers_per_subscription (opens in new tab)

thebuild.com
Check before you follow it: 1 claim is wrong.
1
inaccuracy
0
dangerous-recipe
0
misleading
0
imprecise
0
transcription
0
aged
0
withdrawn
21
verified-accurate

Factual B+ · Applicable A · Consistent A · Transparent C · Safe A

ReportTechnical fact-check, edition 3 Issued EditionUpdated after review. Corrections are listed below. SubmittedSubmitted by the PostgresAI team. Author responseNo written reply from the author. The article changed 2 times after our first audit; we re-audited each version. See Revisions below. Policy: right-of-reply and corrections policy. pgTrue versionaudited with v1.0.17 (approx.) · regraded with v1.0.19 (approx.)

Inaccuracies

F1

STREAM COMMIT temporary files do not prove that a transaction lacked a parallel worker

INACCURATEFactual · holds up after review

Claim ledger

Article says
…with STREAM COMMIT in its context line is a streamed transaction that did not get a parallel worker…
What is true
An assigned parallel worker can also cause these files. applyparallelworker.c:142 describes queue-send timeouts that force serialization. worker.c:2214 completes that path during STREAM COMMIT. The leader then removes its files. Increasing worker counts does not resolve a blocked assigned worker.
So what
Check for the serialization message and blocked parallel workers before increasing max_parallel_apply_workers_per_subscription or restarting for a larger worker pool.
Charitable reading
The demonstrated overflow can produce this log. The following sentence states a general diagnostic rule.

Source

Source · REL_18_6 · src/backend/replication/logical/applyparallelworker.c:142-147* To avoid this wait, we use a non-blocking write and wait with a timeout. If * the timeout is exceeded, the LA will serialize all the pending messages to * a file and indicate PA-2 that it needs to read that file for the remaining * messages.
In the article · section “Running out is silent”

In the article

excerpt · section “Running out is silent” · as fetched 2026-10-21 · open in article ↗ (opens in new tab)

Running out is silent

A temporary file from a logical replication apply worker with STREAM COMMIT in its context line is a streamed transaction that did not get a parallel worker. pg_stat_database.temp_bytes on the subscriber counts the same files, and stream_txns in the publisher’s pg_stat_replication_slots tells you how many transactions were candidates in the first place. The spill costs more than the transaction that spilled: in the same test on 19 beta 3, both parallel workers sat for eight seconds waiting on the leader while it replayed the third transaction from its file.

All sources and excerpts · 6
Evidence * To avoid this wait, we use a non-blocking write and wait with a timeout. If * the timeout is exceeded, the LA will serialize all the pending messages to * a file and indicate PA-2 that it needs to read that file for the remaining * messages.
Evidence winfo->serialize_changes = true; /* Initialize the stream fileset. */ stream_start_internal(winfo->shared->xid, true);
Evidence case TRANS_LEADER_PARTIAL_SERIALIZE: Assert(winfo); stream_open_and_write_change(xid, LOGICAL_REP_MSG_STREAM_COMMIT, &original_msg); pa_set_fileset_state(winfo->shared, FS_SERIALIZE_DONE); /* Finish processing the streaming transaction. */ pa_xact_finish(winfo, commit_data.end_lsn);
Evidence pa_free_worker(winfo);
Evidence if (winfo->serialize_changes) stream_cleanup_files(MyLogicalRepWorker->subid, winfo->shared->xid);
Evidence pgstat_report_tempfile(size); if (log_temp_files >= 0) { if ((size / 1024) >= log_temp_files) ereport(LOG, (errmsg("temporary file: path \"%s\", size %lu", path, (unsigned long) size)));
How the review tested this

Review: We tested whether the diagnostic sentence describes only the demonstrated overflow. Its wording states a general rule. Assigned workers also trigger serialization and cleanup during STREAM COMMIT. Checking the serialization message before raising worker limits addresses the supported wasted-work consequence. We tested whether STREAM COMMIT excludes assigned workers. Partial serialization reaches that handler and deletes files after worker completion. The article states a general diagnostic rule beyond its example. Checking blocked workers before changing worker limits is concrete. Wasted work matches the evidence.

Dangerous or recipe bugsNone in this edition.

Misleading / impreciseNone in this edition.

Verified accurate

F2

The worker limit defaults to 2 and changes on reload

ACCURATEFactual · holds up after review

Claim ledger

Article says
Default 2 , context sighup , range 0 to 1024…
What is true
guc_tables.c:3378 defines a reloadable limit of 2 workers, with supported values from 0 through 1,024 workers. PostgreSQL 16 and 19 beta 3 retain that definition. PostgreSQL 18 changes the subscription streaming default to parallel. The logical replication worker pool defaults to 4 workers and requires restart.
Charitable reading
The parameter limits worker allocation. Separate publisher and subscription conditions still control eligibility.

Source

Source · REL_18_6 · src/include/postmaster/bgworker_internals.h:24-24#define MAX_PARALLEL_WORKER_LIMIT 1024
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)Default 2 , context sighup , range 0 to 1024…
All sources and excerpts · 9
Evidence#define MAX_PARALLEL_WORKER_LIMIT 1024
Evidence {"max_parallel_apply_workers_per_subscription", PGC_SIGHUP, REPLICATION_SUBSCRIBERS, gettext_noop("Maximum number of parallel apply workers per subscription."), NULL, }, &max_parallel_apply_workers_per_subscription, 2, 0, MAX_PARALLEL_WORKER_LIMIT,

Version note: Checked the article's PostgreSQL 16 version floor.

Evidence{ name => 'max_parallel_apply_workers_per_subscription', type => 'int', context => 'PGC_SIGHUP', group => 'REPLICATION_SUBSCRIBERS', short_desc => 'Maximum number of parallel apply workers per subscription.', variable => 'max_parallel_apply_workers_per_subscription', boot_val => '2', min => '0', max => 'MAX_PARALLEL_WORKER_LIMIT', },

Version note: Checked the article's explicit PostgreSQL 19 beta 3 claim.

Evidence {"max_logical_replication_workers", PGC_POSTMASTER, REPLICATION_SUBSCRIBERS, gettext_noop("Maximum number of logical replication worker processes."), NULL, }, &max_logical_replication_workers, 4, 0, MAX_BACKENDS,
Evidence if (is_parallel_apply_worker && nparallelapplyworkers >= max_parallel_apply_workers_per_subscription) { LWLockRelease(LogicalRepWorkerLock); return false; }
Evidence Specifies whether to enable streaming of in-progress transactions for this subscription. The default value is <literal>parallel</literal>, meaning incoming changes are directly applied via one of the parallel apply workers, if available.
Evidence Specifies whether to enable streaming of in-progress transactions for this subscription. The default value is <literal>off</literal>,

Version note: Checked PostgreSQL 16 documentation.

Evidence Specifies whether to enable streaming of in-progress transactions for this subscription. The default value is <literal>off</literal>,

Version note: Checked PostgreSQL 17 documentation.

Evidence {"max_parallel_apply_workers_per_subscription", PGC_SIGHUP, REPLICATION_SUBSCRIBERS, gettext_noop("Maximum number of parallel apply workers per subscription."), NULL, }, &max_parallel_apply_workers_per_subscription, 2, 0, MAX_PARALLEL_WORKER_LIMIT,
How the review tested this

Review: We checked for confusion between the reloadable subscription limit and the restart-only logical worker pool. The definitions distinguish both correctly. PostgreSQL 16, 17, 18.6, and 19 beta 3 support the stated version distinctions. We checked whether release changes or pool limits invalidate the configuration claim. Defaults, bounds, and configuration contexts match. The finding distinguishes the subscription limit from the shared pool.

F3

Verified accurate: “One transaction, one worker.”

ACCURATEFactual · partly holds after review

Claim ledger

Article says
One transaction, one worker.
What is true
applyparallelworker.c:17–23 assigns an available worker when a transaction's first stream arrives. That worker retains the assignment through commit. applyparallelworker.c:1649 waits for the worker to finish. This supports one worker per assigned streamed transaction and preserves commit order.

Source

Source · REL_18_6 · src/backend/replication/logical/applyparallelworker.c:17-23* The parallel apply workers are assigned (if available) as soon as xact's * first stream is received for subscriptions that have set their 'streaming' * option as parallel. The leader apply worker will send changes to this new * worker via shared memory. We keep this worker assigned till the transaction * commit is received and also wait for the worker to finish at commit.
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)One transaction, one worker.
All sources and excerpts · 3
Evidence * The parallel apply workers are assigned (if available) as soon as xact's * first stream is received for subscriptions that have set their 'streaming' * option as parallel. The leader apply worker will send changes to this new * worker via shared memory. We keep this worker assigned till the transaction * commit is received and also wait for the worker to finish at commit.
Evidence case TRANS_LEADER_PARTIAL_SERIALIZE: Assert(winfo); stream_open_and_write_change(xid, LOGICAL_REP_MSG_STREAM_COMMIT, &original_msg); pa_set_fileset_state(winfo->shared, FS_SERIALIZE_DONE); /* Finish processing the streaming transaction. */ pa_xact_finish(winfo, commit_data.end_lsn);
Evidence pa_free_worker(winfo);
How the review tested this

Review: We checked assignment and commit waiting. These ranges support one worker per streamed transaction. They do not establish ordinary nonstreamed transaction execution or the configured concurrency limit.

F4

The reorder buffer selects the largest streamable transaction under memory pressure

ACCURATEFactual · holds up after review

Claim ledger

Article says
…it starts sending its largest transaction downstream…
What is true
reorderbuffer.c:3937 selects ReorderBufferLargestStreamableTopTXN when streaming can start. The memory limit defaults to 64 MiB per reorder buffer. PostgreSQL can stream changes before commit. If streaming cannot start, it can serialize decoded changes on the publisher instead.
Charitable reading
The article discusses a subscription that enables transaction streaming. PostgreSQL must also consider whether a transaction is streamable.

Source

Source · REL_18_6 · src/backend/replication/logical/reorderbuffer.c:3937-3950if (ReorderBufferCanStartStreaming(rb) && (txn = ReorderBufferLargestStreamableTopTXN(rb)) != NULL)
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…it starts sending its largest transaction downstream…
All sources and excerpts · 3
Evidence if (ReorderBufferCanStartStreaming(rb) && (txn = ReorderBufferLargestStreamableTopTXN(rb)) != NULL)
Evidence &logical_decoding_work_mem, 65536, 64, MAX_KILOBYTES,
Evidence Specifies the maximum amount of memory to be used by logical decoding, before some of the decoded changes are written to local disk. This limits the amount of memory used by logical streaming replication connections. It defaults to 64 megabytes (<literal>64MB</literal>).
How the review tested this

Review: We tested the largest-transaction claim against streamability and aggregate memory accounting. The finding includes the streamability qualification. E-22 identifies the 64 MiB limit per reorder buffer. We checked aggregate memory accounting and streaming eligibility. The finding specifies the largest streamable transaction and preserves the publisher-side serialization fallback.

F5

The normal retained-worker limit is half the setting, rounded down

ACCURATEFactual · holds up after review

Claim ledger

Article says
The number kept is half of this setting, rounded down…
What is true
applyparallelworker.c:576 stops completed workers while the pool exceeds half the configured limit. Integer division rounds down. A limit of 1 worker retains no completed worker. Reloading a lower limit does not immediately remove idle workers because this check runs when PostgreSQL releases a completed worker.
Charitable reading
The retention count describes the normal completed-worker pool. Queue-timeout serialization can also force worker exit.

Source

Source · REL_18_6 · src/backend/replication/logical/applyparallelworker.c:576-587if (winfo->serialize_changes || list_length(ParallelApplyWorkerPool) > (max_parallel_apply_workers_per_subscription / 2)) { logicalrep_pa_worker_stop(winfo); pa_free_worker_info(winfo); return; } winfo->in_use = false; winfo->serialize_changes = false;
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)The number kept is half of this setting, rounded down…
All sources and excerpts · 2
Evidence if (winfo->serialize_changes || list_length(ParallelApplyWorkerPool) > (max_parallel_apply_workers_per_subscription / 2)) { logicalrep_pa_worker_stop(winfo); pa_free_worker_info(winfo); return; } winfo->in_use = false; winfo->serialize_changes = false;
Evidence if (winfo->serialize_changes || list_length(ParallelApplyWorkerPool) > (max_parallel_apply_workers_per_subscription / 2))
How the review tested this

Review: We checked whether the retention count guarantees that many idle workers. The finding states a limit. Integer division and completion-time cleanup support that limit, including zero retained workers at setting 1. We checked whether retention counts active workers and whether reload immediately evicts idle workers. The release-time check supports the stated normal limit. The finding does not promise immediate convergence after reload.

F6

Table synchronization and pending SKIP prevent parallel worker allocation

ACCURATEFactual · holds up after review

Claim ledger

Article says
Every table in the subscription has to be in state r…
What is true
applyparallelworker.c:312 requires all subscription tables to be ready. A pending skip LSN forces serialization before application. worker.c:4476 requires a publisher running PostgreSQL 16 or later for parallel streaming. pg_subscription.substream = p records the requested mode. It does not establish that PostgreSQL allocated a worker.
Charitable reading
The prerequisites describe worker eligibility, not whether the subscription catalog still requests parallel streaming.

Source

Source · REL_18_6 · src/backend/replication/logical/applyparallelworker.c:302-313if (!AllTablesyncsReady()) return false;
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)Every table in the subscription has to be in state r…
All sources and excerpts · 5
Evidence if (!AllTablesyncsReady()) return false;
Evidence * streaming transactions, we need to serialize the transaction to a file * so that we can get the last LSN of the transaction to judge whether to * skip before starting to apply the change.
Evidence if (server_version >= 160000 && MySubscription->stream == LOGICALREP_STREAM_PARALLEL) { options->proto.logical.streaming_str = "parallel"; MyLogicalRepWorker->parallel_apply = true;
Evidence#define LOGICALREP_STREAM_PARALLEL 'p'
Evidence <literal>p</literal> = apply changes directly using a parallel apply worker if available (same as <literal>t</literal> if no worker is available)
How the review tested this

Review: We checked whether catalog mode p proves runtime eligibility. E-27 and E-28 independently reject allocation. E-29 requires publisher version 16 or later. The finding preserves these distinctions. We tested whether the catalog's parallel mode overrides readiness, skip, or publisher checks. The source keeps those eligibility checks separate. The finding preserves that distinction.

F7

Verified accurate: “…SELECT subname, worker_type, pid, leader_pid FROM pg_stat_subscription;…”

ACCURATEFactual · partly holds after review

Claim ledger

Article says
…SELECT subname, worker_type, pid, leader_pid FROM pg_stat_subscription;…
What is true
system_views.sql:979–985 exposes subname, worker_type, pid, and leader_pid in pg_stat_subscription. The article's SELECT names supported columns in PostgreSQL 18.6. This range does not verify the displayed worker labels or process IDs.

Source

Source · REL_18_6 · src/backend/catalog/system_views.sql:979-985CREATE VIEW pg_stat_subscription AS SELECT su.oid AS subid, su.subname, st.worker_type, st.pid, st.leader_pid,
In the article · section “Running out is silent”

In the article

excerpt · section “Running out is silent” · as fetched 2026-10-21 · open in article ↗ (opens in new tab)

Running out is silent

postgres=# SELECT subname, worker_type, pid, leader_pid FROM pg_stat_subscription;
subname |  worker_type   |  pid  | leader_pid
---------+----------------+-------+------------
sub1    | apply          | 12066 |
sub1    | parallel apply | 12088 |      12066
sub1    | parallel apply | 12097 |      12066
All sources and excerpts · 1
EvidenceCREATE VIEW pg_stat_subscription AS SELECT su.oid AS subid, su.subname, st.worker_type, st.pid, st.leader_pid,
How the review tested this

Review: We checked all four selected columns. E-33 confirms their existence but does not define worker_type values or leader_pid semantics. The finding's interpretation of worker kinds exceeds that range.

F8

log_temp_files = 0 logs temporary-file deletion

ACCURATEFactual · holds up after review

Claim ledger

Article says
With log_temp_files set to 0…
What is true
fd.c:1532 reports temporary-file names and sizes when log_temp_files permits them. A setting of 0 logs every reported file. PathNameDeleteTemporaryFile calls that function after deletion. The documentation states the same timing and records sizes in bytes.
Charitable reading
The example concerns an individual changes file. Other transactions can produce additional temporary files.

Source

Source · REL_18_6 · doc/src/sgml/config.sgml:8218-8240If enabled by this setting, a log entry is emitted for each temporary file, with the file size specified in bytes, when it is deleted. A value of zero logs all temporary file information, while positive values log only files whose size is greater than or equal to the specified amount of data.
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)With log_temp_files set to 0…
All sources and excerpts · 3
Evidence If enabled by this setting, a log entry is emitted for each temporary file, with the file size specified in bytes, when it is deleted. A value of zero logs all temporary file information, while positive values log only files whose size is greater than or equal to the specified amount of data.
Evidence if (stat_errno == 0) ReportTemporaryFileUsage(path, filestats.st_size);
Evidence pgstat_report_tempfile(size); if (log_temp_files >= 0) { if ((size / 1024) >= log_temp_files) ereport(LOG, (errmsg("temporary file: path \"%s\", size %lu", path, (unsigned long) size)));
How the review tested this

Review: We tested creation-time versus deletion-time logging and the zero threshold. The documentation and reporting function agree. The finding limits its claim to reported temporary files. We tested whether logging occurs at creation or deletion and whether zero excludes small files. Code and documentation support deletion-time reporting with a zero threshold.

F9

The subscriber's temp_bytes counter includes these temporary files

ACCURATEFactual · holds up after review

Claim ledger

Article says
pg_stat_database.temp_bytes on the subscriber counts the same files…
What is true
fd.c:1966 reports deleted temporary-file sizes. pgstat_database.c:218 adds each reported size to temp_bytes for the current database. The counter includes other temporary-file activity too. PostgreSQL does not require log_temp_files = 0 to count these bytes.
Charitable reading
The claim says these files contribute to the counter. It does not say the counter isolates replication files.

Source

Source · REL_18_6 · src/backend/utils/activity/pgstat_database.c:218-220dbent = pgstat_prep_database_pending(MyDatabaseId); dbent->temp_bytes += filesize; dbent->temp_files++;
In the article · section “Running out is silent”

In the article

excerpt · section “Running out is silent” · as fetched 2026-10-21 · open in article ↗ (opens in new tab)

Running out is silent

A temporary file from a logical replication apply worker with STREAM COMMIT in its context line is a streamed transaction that did not get a parallel worker. pg_stat_database.temp_bytes on the subscriber counts the same files, and stream_txns in the publisher’s pg_stat_replication_slots tells you how many transactions were candidates in the first place. The spill costs more than the transaction that spilled: in the same test on 19 beta 3, both parallel workers sat for eight seconds waiting on the leader while it replayed the third transaction from its file.

All sources and excerpts · 3
Evidence dbent = pgstat_prep_database_pending(MyDatabaseId); dbent->temp_bytes += filesize; dbent->temp_files++;
Evidence if (stat_errno == 0) ReportTemporaryFileUsage(path, filestats.st_size);
Evidence pgstat_report_tempfile(size); if (log_temp_files >= 0) { if ((size / 1024) >= log_temp_files) ereport(LOG, (errmsg("temporary file: path \"%s\", size %lu", path, (unsigned long) size)));
How the review tested this

Review: We checked whether log_temp_files controls statistics collection. E-7 reports sizes before testing the logging threshold. E-37 adds those sizes to the current database's temp_bytes. We tested whether temp_bytes depends on enabled logging or isolates replication files. Statistics update before the logging check. The finding explicitly includes other temporary-file activity.

F10

stream_txns counts distinct transactions streamed by a logical slot

ACCURATEFactual · holds up after review

Claim ledger

Article says
…stream_txns in the publisher’s pg_stat_replication_slots…
What is true
reorderbuffer.c:4435 increments streamTxns only when the transaction has not already streamed. The counter counts top-level transactions rather than chunks. It measures publisher streaming activity. It does not report whether the subscriber obtained a parallel worker.
Charitable reading
Candidates means transactions actually streamed by the publisher. It does not mean successful parallel worker assignments.

Source

Source · REL_18_6 · src/backend/replication/logical/reorderbuffer.c:4431-4438rb->streamCount += 1; rb->streamBytes += stream_bytes; /* Don't consider already streamed transaction. */ rb->streamTxns += (txn_is_streamed) ? 0 : 1;
In the article · section “Running out is silent”

In the article

excerpt · section “Running out is silent” · as fetched 2026-10-21 · open in article ↗ (opens in new tab)

Running out is silent

A temporary file from a logical replication apply worker with STREAM COMMIT in its context line is a streamed transaction that did not get a parallel worker. pg_stat_database.temp_bytes on the subscriber counts the same files, and stream_txns in the publisher’s pg_stat_replication_slots tells you how many transactions were candidates in the first place. The spill costs more than the transaction that spilled: in the same test on 19 beta 3, both parallel workers sat for eight seconds waiting on the leader while it replayed the third transaction from its file.

All sources and excerpts · 2
Evidence rb->streamCount += 1; rb->streamBytes += stream_bytes; /* Don't consider already streamed transaction. */ rb->streamTxns += (txn_is_streamed) ? 0 : 1;
Evidence Number of in-progress transactions streamed to the decoding output plugin after the memory used by logical decoding to decode changes from WAL for this slot has exceeded <literal>logical_decoding_work_mem</literal>. Streaming only works with top-level transactions (subtransactions can't be streamed independently), so the counter is not incremented for subtransactions.
How the review tested this

Review: We tested whether stream_txns counts chunks or successful worker assignments. E-40 excludes already-streamed transactions. E-41 identifies top-level transactions. The finding does not equate streaming with successful allocation. We checked whether stream_txns counts chunks, subtransactions, or successful worker assignments. The source and documentation support distinct streamed top-level transactions.

F11

PostgreSQL 19 beta 3 enables log_lock_waits by default

ACCURATEFactual · holds up after review

Claim ledger

Article says
With log_lock_waits on, which I recommended and which 19 does by default…
What is true
guc_parameters.dat:1744 sets log_lock_waits to true in PostgreSQL 19 beta 3. Parallel workers use heavyweight stream locks between chunks. deadlock_timeout controls when PostgreSQL logs those waits. Separately, ALTER SUBSCRIPTION SKIP requires a finish LSN. PostgreSQL 18 documents serial retry when parallel apply omits that LSN.
Charitable reading
The default claim explicitly concerns PostgreSQL 19. PostgreSQL 18's different default does not contradict it.

Source

Source · REL_19_BETA3 · src/backend/utils/misc/guc_parameters.dat:1744-1748{ name => 'log_lock_waits', type => 'bool', context => 'PGC_SUSET', group => 'LOGGING_WHAT', short_desc => 'Logs long lock waits.', variable => 'log_lock_waits', boot_val => 'true', },
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)With log_lock_waits on, which I recommended and which 19 does by default…
All sources and excerpts · 6
Evidence{ name => 'log_lock_waits', type => 'bool', context => 'PGC_SUSET', group => 'LOGGING_WHAT', short_desc => 'Logs long lock waits.', variable => 'log_lock_waits', boot_val => 'true', },

Version note: Checked the stated PostgreSQL 19 beta 3 default.

Evidence * the lock in AccessExclusive mode before sending the STREAM_STOP and will * release it if already acquired after sending the STREAM_START, STREAM_ABORT * (for toplevel transaction), STREAM_PREPARE, and STREAM_COMMIT. The PA will * acquire the lock in AccessShare mode after processing STREAM_STOP and * STREAM_ABORT (for subtransaction) and then release the lock immediately * after acquiring it.
Evidence When <xref linkend="guc-log-lock-waits"/> is set, this parameter also determines the amount of time to wait before a log message is issued about the lock wait.
Evidence if (log_lock_waits && deadlock_state != DS_NOT_YET_CHECKED)
Evidence Specifies the finish LSN of the remote transaction whose changes are to be skipped by the logical replication worker. The finish LSN is the LSN at which the transaction is either committed or prepared.
Evidence mode is <literal>parallel</literal>, the finish LSN of failed transactions may not be logged. In that case, it may be necessary to change the streaming mode to <literal>on</literal> or <literal>off</literal> and cause the same conflicts again so the finish LSN of the failed transaction will be written to the server log.
How the review tested this

Review: We checked the PostgreSQL 19 beta 3 default separately from PostgreSQL 18 behavior. E-43 sets true. The lock and finish-LSN statements also match their cited ranges. We checked for confusion between PostgreSQL 18 and 19 defaults. The cited beta sets log_lock_waits to true. Separate citations support stream locks, timeout logging, and finish-LSN recovery.

F12

PostgreSQL 16 introduced parallel apply and its worker limit

ACCURATEFactual · holds up after review

Claim ledger

Article says
It arrived in PostgreSQL 16 along with streaming = parallel…
What is true
PostgreSQL 16.0 release notes introduce streaming=parallel and max_parallel_apply_workers_per_subscription together. See doc/src/sgml/release-16.sgml:1749-1754.
Charitable reading
The statement identifies the release that introduced both features.

Source

Source · REL_16_0 · doc/src/sgml/release-16.sgml:1736-1756option now supports <literal>parallel</literal> to enable application of large transactions by parallel workers. The number of parallel workers is controlled by the new server variable <link linkend="guc-max-parallel-apply-workers-per-subscription"><varname>max_parallel_apply_workers_per_subscription</varname></link>.
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)It arrived in PostgreSQL 16 along with streaming = parallel…
All sources and excerpts · 1
Evidence option now supports <literal>parallel</literal> to enable application of large transactions by parallel workers. The number of parallel workers is controlled by the new server variable <link linkend="guc-max-parallel-apply-workers-per-subscription"><varname>max_parallel_apply_workers_per_subscription</varname></link>.
How the review tested this

Review: We checked the PostgreSQL 16.0 release floor. Its release notes introduce parallel streaming and the worker-limit setting together. We checked whether streaming generally predates the claimed release. The article identifies parallel streaming and its worker limit. PostgreSQL 16 release notes introduce both together.

F13

PostgreSQL 18 changed the subscription streaming default to parallel

ACCURATEFactual · holds up after review

Claim ledger

Article says
PostgreSQL 18 made it the default for CREATE SUBSCRIPTION…
What is true
PostgreSQL 18 changed CREATE SUBSCRIPTION's streaming default from off to parallel. See doc/src/sgml/release-18.sgml:10426-10427.
Charitable reading
The default concerns newly created subscriptions. Existing subscriptions retain their settings.

Source

Source · REL_18_6 · doc/src/sgml/release-18.sgml:10419-10438Change the default <xref linkend="sql-createsubscription"/> streaming option from <literal>off</literal> to <literal>parallel</literal>
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)PostgreSQL 18 made it the default for CREATE SUBSCRIPTION…
All sources and excerpts · 1
Evidence Change the default <xref linkend="sql-createsubscription"/> streaming option from <literal>off</literal> to <literal>parallel</literal>
How the review tested this

Review: We tested whether the finding extends the new default to existing subscriptions. It does not. E-52 explicitly records the CREATE SUBSCRIPTION default change. We checked whether the claim incorrectly covers existing subscriptions. It concerns CREATE SUBSCRIPTION. PostgreSQL 18 release notes explicitly change that default from off to parallel.

F14

pg_dump explicitly preserves an existing streaming=off setting

ACCURATEFactual · holds up after review

Claim ledger

Article says
…pg_dump in 18 writes streaming = off explicitly…
What is true
PostgreSQL 18.6 pg_dump emits streaming=off for an off subscription. It also preserves on and parallel. See src/bin/pg_dump/pg_dump.c:5378-5383.
Charitable reading
The preceding upgrade sentence supplies the preservation context. The statement does not require every dump to select off.

Source

Source · REL_18_6 · src/bin/pg_dump/pg_dump.c:5370-5394if (subinfo->substream == LOGICALREP_STREAM_ON) appendPQExpBufferStr(query, ", streaming = on"); else if (subinfo->substream == LOGICALREP_STREAM_PARALLEL) appendPQExpBufferStr(query, ", streaming = parallel"); else appendPQExpBufferStr(query, ", streaming = off");
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…pg_dump in 18 writes streaming = off explicitly…
All sources and excerpts · 1
Evidence if (subinfo->substream == LOGICALREP_STREAM_ON) appendPQExpBufferStr(query, ", streaming = on"); else if (subinfo->substream == LOGICALREP_STREAM_PARALLEL) appendPQExpBufferStr(query, ", streaming = parallel"); else appendPQExpBufferStr(query, ", streaming = off");
How the review tested this

Review: We tested a universal reading that every dump emits off. The surrounding preservation context supports the narrower reading. The finding correctly states that pg_dump preserves on, parallel, and off. We tested the literal reading that every dump writes streaming=off. The preceding preservation context supports the narrower reading. The finding correctly states that pg_dump preserves all three modes.

F15

The documentation qualifies parallel application by worker availability

ACCURATEFactual · holds up after review

Claim ledger

Article says
…changes go to a parallel apply worker “if available,”…
What is true
The documentation says incoming changes use parallel workers if available. Otherwise, temporary files retain changes until commit. See doc/src/sgml/ref/create_subscription.sgml:275-278.
Charitable reading
The article quotes the availability qualification. Its comma follows American quotation punctuation.

Source

Source · REL_18_6 · doc/src/sgml/ref/create_subscription.sgml:260-289meaning incoming changes are directly applied via one of the parallel apply workers, if available. If no parallel apply worker is free to handle streaming transactions then the changes are written to temporary files and applied after the transaction is committed. Note
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…changes go to a parallel apply worker “if available,”…
All sources and excerpts · 1
Evidence meaning incoming changes are directly applied via one of the parallel apply workers, if available. If no parallel apply worker is free to handle streaming transactions then the changes are written to temporary files and applied after the transaction is committed. Note
How the review tested this

Review: We checked the availability wording and fallback against create_subscription.sgml. Both match. The finding does not claim worker exhaustion is the only possible serialization cause. We checked the quoted availability qualification and fallback. The documentation contains both. The finding verifies the documentation's wording without making worker availability the only serialization cause.

F17

Parallel apply requires a PostgreSQL 16 or later publisher

ACCURATEFactual · holds up after review

Claim ledger

Article says
The publisher has to be 16 or later.
What is true
PostgreSQL 18.6 enables parallel apply only when server_version reaches 160000. PostgreSQL 14 and 15 use streaming on. See src/backend/replication/logical/worker.c:4476-4486.
Charitable reading
The version floor concerns parallel apply rather than streaming generally.

Source

Source · REL_18_6 · src/backend/replication/logical/worker.c:4470-4494if (server_version >= 160000 && MySubscription->stream == LOGICALREP_STREAM_PARALLEL) { options->proto.logical.streaming_str = "parallel"; MyLogicalRepWorker->parallel_apply = true; } else if (server_version >= 140000 && MySubscription->stream != LOGICALREP_STREAM_OFF) { options->proto.logical.streaming_str = "on"; MyLogicalRepWorker->parallel_apply = false; }
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)The publisher has to be 16 or later.
All sources and excerpts · 1
Evidence if (server_version >= 160000 && MySubscription->stream == LOGICALREP_STREAM_PARALLEL) { options->proto.logical.streaming_str = "parallel"; MyLogicalRepWorker->parallel_apply = true; } else if (server_version >= 140000 && MySubscription->stream != LOGICALREP_STREAM_OFF) { options->proto.logical.streaming_str = "on"; MyLogicalRepWorker->parallel_apply = false; }
How the review tested this

Review: We distinguished parallel apply from ordinary streaming. E-60 selects parallel at server_version 160000 and on for eligible PostgreSQL 14 or 15 publishers. We checked whether PostgreSQL 14 or 15 publishers can negotiate parallel apply. The source selects parallel at version 160000 and ordinary streaming for supported older publishers.

F18

A pending skip LSN prevents parallel-worker assignment

ACCURATEFactual · holds up after review

Claim ledger

Article says
…a pending ALTER SUBSCRIPTION ... SKIP turns parallel apply off…
What is true
pa_can_start returns false when the subscription has a valid skip LSN. See src/backend/replication/logical/applyparallelworker.c:302-303.
Charitable reading
The claim concerns assigning streamed transactions while a skip LSN remains pending.

Source

Source · REL_18_6 · src/backend/replication/logical/applyparallelworker.c:260-315if (!XLogRecPtrIsInvalid(MySubscription->skiplsn)) return false;
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…a pending ALTER SUBSCRIPTION ... SKIP turns parallel apply off…
All sources and excerpts · 1
Evidence if (!XLogRecPtrIsInvalid(MySubscription->skiplsn)) return false;
How the review tested this

Review: We checked whether a pending skip merely affects the targeted transaction. E-62 rejects worker startup whenever skiplsn remains valid. The finding correctly describes assignment eligibility. We checked whether pending SKIP only affects the matching transaction's eventual commit. The allocation gate rejects any valid pending skip LSN before assigning a worker.

F19

Parallel apply preserves commit ordering

ACCURATEFactual · holds up after review

Claim ledger

Article says
…commit order holds there too…
What is true
The leader retains the assigned worker through commit and waits for completion. This preserves commit order. See src/backend/replication/logical/applyparallelworker.c:20-22.
Charitable reading
Commit ordering does not require each transaction's changes to execute serially.

Source

Source · REL_18_6 · src/backend/replication/logical/applyparallelworker.c:1-110* worker via shared memory. We keep this worker assigned till the transaction * commit is received and also wait for the worker to finish at commit. This * preserves commit ordering and avoid file I/O in most cases, although we
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…commit order holds there too…
All sources and excerpts · 1
Evidence * worker via shared memory. We keep this worker assigned till the transaction * commit is received and also wait for the worker to finish at commit. This * preserves commit ordering and avoid file I/O in most cases, although we
How the review tested this

Review: We tested whether concurrent application implies unordered commits. E-64 explicitly requires the leader to wait at commit and identifies commit ordering as the purpose. We tested whether concurrent application contradicts ordered commits. The source explicitly waits for the assigned worker at commit to preserve commit ordering.

F20

The accepted range is 0–1024 workers

ACCURATEFactual · holds up after review

Claim ledger

Article says
…range 0 to 1024…
What is true
guc_tables.c:3385 sets the lower bound to 0. bgworker_internals.h:24 defines the upper bound as 1024.
Charitable reading
The stated range describes accepted configuration values, rather than available runtime workers.

Source

Source · REL_18_6 · src/backend/utils/misc/guc_tables.c:3376-3388&max_parallel_apply_workers_per_subscription, 2, 0, MAX_PARALLEL_WORKER_LIMIT,
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…range 0 to 1024…
All sources and excerpts · 2
Evidence &max_parallel_apply_workers_per_subscription, 2, 0, MAX_PARALLEL_WORKER_LIMIT,
Evidence#define MAX_PARALLEL_WORKER_LIMIT 1024
How the review tested this

Review: We checked the named upper-bound constant instead of assuming its value. E-67 defines 1024. The finding describes accepted configuration values, not guaranteed worker availability. We checked whether 1,024 describes actual available workers rather than accepted configuration values. The finding states the accepted range, which the parameter definition and constant confirm.

F21

Verified accurate: “…Three conditions send every streamed transaction to a file no matter what this is set to…”

ACCURATEFactual · partly holds after review

Claim ledger

Article says
…Three conditions send every streamed transaction to a file no matter what this is set to…
What is true
worker.c:4476–4491 enables parallel mode only with publisher version 16 or later. applyparallelworker.c:302–313 rejects new parallel-worker assignments while skiplsn is set or table synchronization remains incomplete. These ranges establish eligibility checks, not termination of existing parallel transactions.

Source

Source · REL_18_6 · src/backend/replication/logical/applyparallelworker.c:260-318if (!XLogRecPtrIsInvalid(MySubscription->skiplsn)) return false;
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…Three conditions send every streamed transaction to a file no matter what this is set to…
All sources and excerpts · 3
Evidence if (!XLogRecPtrIsInvalid(MySubscription->skiplsn)) return false;
Evidence if (!AllTablesyncsReady()) return false;
Evidence if (server_version >= 160000 && MySubscription->stream == LOGICALREP_STREAM_PARALLEL)
How the review tested this

Review: We checked whether these conditions stop existing parallel work. pa_can_start governs eligibility for new assignments. Its checks support a narrower statement than disabling parallel apply without qualification.

F22

The displayed file size rounds to 133 MB

ACCURATEFactual · holds up after review

Claim ledger

Article says
…all 133MB of it…
What is true
The displayed file contains 133 MB after rounding (derived: 133,488,942 bytes / 1,000,000). config.sgml:8231 specifies bytes for this log field.
Charitable reading
The article rounds a decimal megabyte count to three significant figures.

Source

Source · REL_18_6 · doc/src/sgml/config.sgml:8218-8240temporary file, with the file size specified in bytes, when it is deleted.
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…all 133MB of it…
All sources and excerpts · 1
Evidence temporary file, with the file size specified in bytes, when it is deleted.
How the review tested this

Review: We recalculated the displayed size: 133,488,942 bytes equals 133.488942 MB, which rounds to 133 MB. The finding verifies conversion, not measurement provenance. We recalculated 133,488,942 bytes as 133.488942 decimal MB. Rounding gives 133 MB. The finding verifies arithmetic and does not claim to reproduce the measurement.

F23

The parallel apply data queue is 16 MiB

ACCURATEFactual · holds up after review

Claim ledger

Article says
…a new 16MB shared memory queue…
What is true
applyparallelworker.c:187 defines DSM_QUEUE_SIZE as 16 × 1024 × 1024 bytes, or 16 MiB.
Charitable reading
The article uses MB in PostgreSQL’s conventional binary sense.

Source

Source · REL_18_6 · src/backend/replication/logical/applyparallelworker.c:187-187#define DSM_QUEUE_SIZE (16 * 1024 * 1024)
In the article

In the article

Article · exact quote · open in article ↗ (opens in new tab)…a new 16MB shared memory queue…
All sources and excerpts · 1
Evidence#define DSM_QUEUE_SIZE (16 * 1024 * 1024)
How the review tested this

Review: We checked decimal versus binary units. DSM_QUEUE_SIZE equals 16,777,216 bytes, or 16 MiB. The finding uses the exact binary unit without charging a cosmetic notation difference. We checked the queue constant and binary-unit conversion. DSM_QUEUE_SIZE equals 16 MiB. The finding does not confuse queue capacity with total worker memory.

More in this report

Section checks · 6 sections

Section checks

AspectGradeFindingsCoverage
Parameter overviewA5 verified-accurate92% of claims (13 of 14)
Streaming and commit orderA3 verified-accurate90% of claims (10 of 11, plus 2 that need data we do not have)
Worker exhaustionB+1 inaccuracy · 6 verified-accurate90% of claims (18 of 20, plus 5 that need data we do not have)
Parallel apply prerequisitesA4 verified-accurate88% of claims (8 of 9, plus 4 that need data we do not have)
Worker reuse and disabling parallel applyA2 verified-accurate40% of claims (4 of 10, plus 1 that need data we do not have)provisional
Conflict diagnosticsA1 verified-accurate83% of claims (5 of 6, plus 3 that need data we do not have)
Coverage and assessment · Checked 68 of 81 Postgres claims across 9 sections; 1 section below half

B — the findings address the article's main subject. What we did not check is listed below. The findings directly check max_parallel_apply_workers_per_subscription defaults, allocation, prerequisites, worker reuse, and serial fallback diagnostics.

We did not check everything in this article. What we did not check is listed below, in the words we recorded at the time. None of it moved the letter. We never charge our own limits to the article.

What we did not check

  • We did not reproduce the transaction timings, temporary-file sizes, or displayed process states.
  • We did not establish whether 2 parallel apply workers suits a particular production workload.
  • We did not reproduce the PostgreSQL 18.6 and 19 beta 3 measurements or displayed logs.
  • We did not check every worker-allocation, retirement, reload, and error-reporting path.
  • We did not establish every behavior change between PostgreSQL 19 beta 3 and October 21, 2026.
  • We checked the related posts but did not independently verify their separate tuning recommendations.
  • We did not reproduce the article’s timing, spill-volume, or worker-wait measurements.
  • We did not verify the proportion of OLTP transactions below the 64 MB decoding threshold.
  • Section “Worker reuse and disabling parallel apply”: we checked 4 of 11 checkable claims.
  • We could not decide whether the published benchmark details are complete.
  • We could not decide whether the article depends on finding F1.
Checked 68 of 81 Postgres claims across 9 sections; 1 section below half
  • Parameter overview: 13 of 14 Postgres claims checked; not counted: 1 product or opinion, 3 not a claim; not checked: 1 for other reasons
  • Streaming and commit order: 10 of 11 Postgres claims checked, plus 2 that need data we do not have; not counted: 1 duplicate; not checked: 1 for other reasons
  • Timing example: 6 claims are the author's own account; nothing checkable; not counted: 2 product or opinion
  • Worker exhaustion: 18 of 20 Postgres claims checked, plus 5 that need data we do not have; not counted: 1 duplicate, 1 not a claim; not checked: 2 for other reasons
  • Parallel apply prerequisites: 8 of 9 Postgres claims checked, plus 4 that need data we do not have; not counted: 2 not a claim; not checked: 1 for other reasons
  • Worker reuse and disabling parallel apply: 4 of 10 Postgres claims checked, plus 1 that need data we do not have; not counted: 1 product or opinion, 5 duplicate, 1 not a claim; not checked: 6 for other reasons
  • Conflict diagnostics: 5 of 6 Postgres claims checked, plus 3 that need data we do not have; not checked: 1 for other reasons
  • Lock-wait logging: 6 of 6 Postgres claims checked, plus 3 that need data we do not have; not counted: 1 product or opinion, 1 not a claim
  • Tuning recommendations: 4 of 5 Postgres claims checked, plus 1 that need data we do not have; not counted: 1 duplicate, 1 not a claim; not checked: 1 for other reasons

Average of 5 axes: 3.46 · benchmark not reproducible, one step off (no hardware) · result B

Some explanatory text is not shown in this edition; the grade and findings are complete.

Scorecard · the five axes
FACTS scorecard Scorecard radar, 5 axes, bigger is better. Overall B. Factual B+ · 1 wrong of 22 checked · 0 caveats. Applicable A · 0 wrong of 16 checked · 0 caveats. Consistent A · 0 wrong of 22 checked · 0 caveats. Transparent C · 0 wrong of 4 checked · 0 caveats · reproducibility: C (no hardware). Safe A · 0 wrong of 6 checked · 0 caveats. B+ 1 wrong of 22 checked · 0 caveatsFactual B+1 wrong of 220 caveats A 0 wrong of 16 checked · 0 caveatsApplicable A0 wrong of 160 caveats A 0 wrong of 22 checked · 0 caveatsConsistent A0 wrong of 220 caveats C 0 wrong of 4 checked · 0 caveats reproducibility: C (no hardware)Transparent C0 wrong of 40 caveatsreproducibility: C(no hardware) A 0 wrong of 6 checked · 0 caveatsSafe A0 wrong of 60 caveats

By topic: Parameter overview — 5 findings, 0 wrong · Streaming and commit order — 3 findings, 0 wrong · Worker exhaustion — 7 findings, 1 wrong · Parallel apply prerequisites — 4 findings, 0 wrong · Worker reuse and disabling parallel apply — 2 findings, 0 wrong · Conflict diagnostics — 1 finding, 0 wrong

Further out is better. Each axis has its own letter, from the wrong claims and caveats among the claims we checked of that kind.

Checked on the FACTS: Factual, Applicable, Consistent, Transparent, Safe. Clockwise: Factual (is it true?), Applicable (does it apply to my setup, today?), Consistent (does it agree with itself?), Transparent (can I check it myself?), Safe (can I run this on prod?).

We checked 22 claims, 1 command scanned.

AxisLetterWrongCaveatsCheckedCoverage
FactualB+1022assessed: B+ · 1 wrong of 22 checked · 0 caveats
ApplicableA0016assessed: A · 0 wrong of 16 checked · 0 caveats
ConsistentA0022assessed: A · 0 wrong of 22 checked · 0 caveats
TransparentC004assessed: C · 0 wrong of 4 checked · 0 caveats · reproducibility: C (no hardware)
SafeA006assessed: A · 0 wrong of 6 checked · 0 caveats
Topics · 6 topics

Topics

TopicFactualApplicableConsistentTransparentSafe
Parameter overview0 issues 5 checked F2 F12 F13 F14 F200 issues 4 checked0 issues 5 checked0 issues 2 checked
Streaming and commit order0 issues 3 checked F3 F4 F190 issues 3 checked0 issues 3 checked
Worker exhaustion1 issue 7 checked F1 F7 F8 F9 F10 F15 F220 issues 3 checked0 issues 7 checked0 issues 2 checked
Parallel apply prerequisites0 issues 4 checked F6 F17 F18 F210 issues 4 checked0 issues 4 checked
Worker reuse and disabling parallel apply0 issues 2 checked F5 F230 issues 1 checked0 issues 2 checked
Conflict diagnostics0 issues 1 checked F110 issues 1 checked0 issues 1 checked

Issues found among the claims checked, per topic and axis. Each link goes to the finding behind the count.

Revisions: 3 · B+ -> B -> B

We audited this article 3 times. Each row is the final edition of one audit. Letters and findings of earlier revisions stay readable at their own address.

  1. Revision 1 · 2026-09-21 16:05 UTC · B+ · audit version not recorded · regrade version not recorded

    Article as first submitted. 12 accurate · 1 wrong · 0 caveats.

    ElephantSeal: B+.

    Changes: First audit. Open: F1 “Temporary files do not uniquely identify missing parallel workers” (misleading).

  2. Revision 2 · 2026-10-19 21:11 UTC · B · audited with v1.0.16 (approx.)

    Article text changed. 19 accurate · 1 wrong · 0 caveats.

    ElephantSeal: B. Open: the benchmark cannot yet be rerun from what is published.

    Changes: No change in findings.

  3. Revision 3 · this page · 2026-10-21 05:06 UTC · B · audited with v1.0.17 (approx.) · regraded with v1.0.19 (approx.)

    Article text changed. 21 accurate · 1 wrong · 0 caveats.

    ElephantSeal: B. Open: the benchmark cannot yet be rerun from what is published.

    Changes: No longer reported: “STREAM COMMIT temporary files do not prove worker exhaustion”. New: F1 “STREAM COMMIT temporary files do not prove that a transaction lacked a parallel worker” (false).

Questions and answers

Questions and answers

What is pgTrue?

pgTrue is an independent fact-check of technical Postgres articles, made by PostgresAI. It helps you check advice before you use it.

What does the letter grade mean?

The letter grade summarizes the claims we checked. Five axes show what we checked:

  • Factual: is it true?
  • Applicable: does it apply to my setup, today?
  • Consistent: does it agree with itself?
  • Transparent: can I check it myself?
  • Safe: can I run this in production?

What is the ElephantSeal?

The ElephantSeal is the mark an article earns. It always shows the latest edition. “Open:” lists what is still open.

Can an author reply?

Authors can ask us to correct a finding, reply to it, or withdraw it. Right-of-reply policy.

Paste into your AI assistant to fix the article, then ask for a re-review.

Show the text
Fix the article with this report, then ask pgTrue for a re-review.

# pgTrue report: All Your GUCs in a Row: max_parallel_apply_workers_per_subscription

Article title: All Your GUCs in a Row: max_parallel_apply_workers_per_subscription
Article URL: https://thebuild.com/blog/all-your-gucs-in-a-row-max_parallel_apply_workers_per_subscription
Report URL: https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585
Audited revision: 3 of 3, 2026-10-21 05:06:19 UTC
Overall letter: B

## Axes

- Factual: B+ · 1 wrong · 22 checked · 0 caveats · assessed
- Applicable: A · 0 wrong · 16 checked · 0 caveats · assessed
- Consistent: A · 0 wrong · 22 checked · 0 caveats · assessed
- Transparent: C · 0 wrong · 4 checked · 0 caveats · assessed
- Safe: A · 0 wrong · 6 checked · 0 caveats · assessed

ElephantSeal: B.
Open conditions: the benchmark cannot yet be rerun from what is published.

## Report metadata

- Report: Technical fact-check, edition 3
- Issued: 2026-10-21
- Edition: Updated after review. Corrections are listed below.
- Submitted: Submitted by the PostgresAI team.
- Author response: No written reply from the author. The article changed 2 times after our first audit; we re-audited each version. See Revisions below. Policy: [right-of-reply and corrections policy](/pgtrue/security).
- pgTrue version: audited with v1.0.17 (approx.) · regraded with v1.0.19 (approx.)

## Findings needing a change (1)

### F1 · Inaccurate · Factual · STREAM COMMIT temporary files do not prove that a transaction lacked a parallel worker
Location: excerpt · section “Running out is silent” · as fetched 2026-10-21 · [open in article](https://thebuild.com/blog/all-your-gucs-in-a-row-max_parallel_apply_workers_per_subscription#:~:text=with%20STREAM%20COMMIT%20in%20its,not%20get%20a%20parallel%20worker)
Article says:
```text
…with STREAM COMMIT in its context line is a streamed transaction that did not get a parallel worker…
```
What is true:
An assigned parallel worker can also cause these files. applyparallelworker.c:142 describes queue-send timeouts that force serialization. worker.c:2214 completes that path during STREAM COMMIT. The leader then removes its files. Increasing worker counts does not resolve a blocked assigned worker.
So what:
Check for the serialization message and blocked parallel workers before increasing max_parallel_apply_workers_per_subscription or restarting for a larger worker pool.
Charitable reading:
The demonstrated overflow can produce this log. The following sentence states a general diagnostic rule.
Review: We tested whether the diagnostic sentence describes only the demonstrated overflow. Its wording states a general rule. Assigned workers also trigger serialization and cleanup during STREAM COMMIT. Checking the serialization message before raising worker limits addresses the supported wasted-work consequence. We tested whether STREAM COMMIT excludes assigned workers. Partial serialization reaches that handler and deletes files after worker completion. The article states a general diagnostic rule beyond its example. Checking blocked workers before changing worker limits is concrete. Wasted work matches the evidence.

Sources:
- [REL_18_6 · src/backend/replication/logical/applyparallelworker.c:142-147](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/applyparallelworker.c#L142-L147)
  Excerpt:
  ```text
  * To avoid this wait, we use a non-blocking write and wait with a timeout. If
 * the timeout is exceeded, the LA will serialize all the pending messages to
 * a file and indicate PA-2 that it needs to read that file for the remaining
 * messages.
  ```
- [REL_18_6 · src/backend/replication/logical/applyparallelworker.c:1230-1242](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/applyparallelworker.c#L1230-L1242)
  Excerpt:
  ```text
  winfo->serialize_changes = true;

	/* Initialize the stream fileset. */
	stream_start_internal(winfo->shared->xid, true);
  ```
- [REL_18_6 · src/backend/replication/logical/worker.c:2214-2223](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/worker.c#L2214-L2223)
  Excerpt:
  ```text
  case TRANS_LEADER_PARTIAL_SERIALIZE:
			Assert(winfo);

			stream_open_and_write_change(xid, LOGICAL_REP_MSG_STREAM_COMMIT,
										 &original_msg);

			pa_set_fileset_state(winfo->shared, FS_SERIALIZE_DONE);

			/* Finish processing the streaming transaction. */
			pa_xact_finish(winfo, commit_data.end_lsn);
  ```
- [REL_18_6 · src/backend/replication/logical/applyparallelworker.c:1634-1654](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/applyparallelworker.c#L1634-L1654)
  Excerpt:
  ```text
  pa_free_worker(winfo);
  ```
- [REL_18_6 · src/backend/replication/logical/applyparallelworker.c:605-607](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/applyparallelworker.c#L605-L607)
  Excerpt:
  ```text
  if (winfo->serialize_changes)
		stream_cleanup_files(MyLogicalRepWorker->subid, winfo->shared->xid);
  ```
- [REL_18_6 · src/backend/storage/file/fd.c:1532-1543](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/file/fd.c#L1532-L1543)
  Excerpt:
  ```text
  pgstat_report_tempfile(size);

	if (log_temp_files >= 0)
	{
		if ((size / 1024) >= log_temp_files)
			ereport(LOG,
					(errmsg("temporary file: path \"%s\", size %lu",
							path, (unsigned long) size)));
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F1

## Verified accurate claims (21)

### F2 · Accurate · Factual · The worker limit defaults to 2 and changes on reload
Location: Article · exact quote · [open in article](https://thebuild.com/blog/all-your-gucs-in-a-row-max_parallel_apply_workers_per_subscription#:~:text=Default%202%20%2C%20context%20sighup%20%2C%20range%200%20to%201024)
Article says:
```text
Default 2 , context sighup , range 0 to 1024…
```
What is true:
guc_tables.c:3378 defines a reloadable limit of 2 workers, with supported values from 0 through 1,024 workers. PostgreSQL 16 and 19 beta 3 retain that definition. PostgreSQL 18 changes the subscription streaming default to parallel. The logical replication worker pool defaults to 4 workers and requires restart.
Charitable reading:
The parameter limits worker allocation. Separate publisher and subscription conditions still control eligibility.
Review: We checked for confusion between the reloadable subscription limit and the restart-only logical worker pool. The definitions distinguish both correctly. PostgreSQL 16, 17, 18.6, and 19 beta 3 support the stated version distinctions. We checked whether release changes or pool limits invalidate the configuration claim. Defaults, bounds, and configuration contexts match. The finding distinguishes the subscription limit from the shared pool.

Sources:
- [REL_18_6 · src/include/postmaster/bgworker_internals.h:24-24](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/include/postmaster/bgworker_internals.h#L24-L24)
  Excerpt:
  ```text
  #define MAX_PARALLEL_WORKER_LIMIT 1024
  ```
- [REL_16_0 · src/backend/utils/misc/guc_tables.c:3044-3051](https://github.com/postgres/postgres/blob/c372fbbd8e911f2412b80a8c39d7079366565d67/src/backend/utils/misc/guc_tables.c#L3044-L3051)
  Qualification: Version note: Checked the article's PostgreSQL 16 version floor.
  Excerpt:
  ```text
  {"max_parallel_apply_workers_per_subscription",
			PGC_SIGHUP,
			REPLICATION_SUBSCRIBERS,
			gettext_noop("Maximum number of parallel apply workers per subscription."),
			NULL,
		},
		&max_parallel_apply_workers_per_subscription,
		2, 0, MAX_PARALLEL_WORKER_LIMIT,
  ```
- [REL_19_BETA3 · src/backend/utils/misc/guc_parameters.dat:2038-2044](https://github.com/postgres/postgres/blob/3638289fb57bdabec00deda98ee9624a35f5d66a/src/backend/utils/misc/guc_parameters.dat#L2038-L2044)
  Qualification: Version note: Checked the article's explicit PostgreSQL 19 beta 3 claim.
  Excerpt:
  ```text
  { name => 'max_parallel_apply_workers_per_subscription', type => 'int', context => 'PGC_SIGHUP', group => 'REPLICATION_SUBSCRIBERS',
  short_desc => 'Maximum number of parallel apply workers per subscription.',
  variable => 'max_parallel_apply_workers_per_subscription',
  boot_val => '2',
  min => '0',
  max => 'MAX_PARALLEL_WORKER_LIMIT',
},
  ```
- [REL_18_6 · src/backend/utils/misc/guc_tables.c:3354-3361](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/misc/guc_tables.c#L3354-L3361)
  Excerpt:
  ```text
  {"max_logical_replication_workers",
			PGC_POSTMASTER,
			REPLICATION_SUBSCRIBERS,
			gettext_noop("Maximum number of logical replication worker processes."),
			NULL,
		},
		&max_logical_replication_workers,
		4, 0, MAX_BACKENDS,
  ```
- [REL_18_6 · src/backend/replication/logical/launcher.c:421-438](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/launcher.c#L421-L438)
  Excerpt:
  ```text
  if (is_parallel_apply_worker &&
		nparallelapplyworkers >= max_parallel_apply_workers_per_subscription)
	{
		LWLockRelease(LogicalRepWorkerLock);
		return false;
	}
  ```
- [REL_18_6 · doc/src/sgml/ref/create_subscription.sgml:273-278](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/create_subscription.sgml#L273-L278)
  Excerpt:
  ```text
  Specifies whether to enable streaming of in-progress transactions
          for this subscription.  The default value is <literal>parallel</literal>,
          meaning incoming changes are directly applied via one of the parallel
          apply workers, if available.
  ```
- [REL_16_0 · doc/src/sgml/ref/create_subscription.sgml:257-258](https://github.com/postgres/postgres/blob/c372fbbd8e911f2412b80a8c39d7079366565d67/doc/src/sgml/ref/create_subscription.sgml#L257-L258)
  Qualification: Version note: Checked PostgreSQL 16 documentation.
  Excerpt:
  ```text
  Specifies whether to enable streaming of in-progress transactions
          for this subscription.  The default value is <literal>off</literal>,
  ```
- [REL_17_0 · doc/src/sgml/ref/create_subscription.sgml:273-274](https://github.com/postgres/postgres/blob/d7ec59a63d745ba74fba0e280bbf85dc6d1caa3e/doc/src/sgml/ref/create_subscription.sgml#L273-L274)
  Qualification: Version note: Checked PostgreSQL 17 documentation.
  Excerpt:
  ```text
  Specifies whether to enable streaming of in-progress transactions
          for this subscription.  The default value is <literal>off</literal>,
  ```
- [REL_18_6 · src/backend/utils/misc/guc_tables.c:3378-3385](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/misc/guc_tables.c#L3378-L3385)
  Excerpt:
  ```text
  {"max_parallel_apply_workers_per_subscription",
			PGC_SIGHUP,
			REPLICATION_SUBSCRIBERS,
			gettext_noop("Maximum number of parallel apply workers per subscription."),
			NULL,
		},
		&max_parallel_apply_workers_per_subscription,
		2, 0, MAX_PARALLEL_WORKER_LIMIT,
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F2

### F3 · Accurate · Factual · Verified accurate: “One transaction, one worker.”
Location: Article · exact quote · [open in article](https://thebuild.com/blog/all-your-gucs-in-a-row-max_parallel_apply_workers_per_subscription#:~:text=One%20transaction%2C%20one%20worker.)
Article says:
```text
One transaction, one worker.
```
What is true:
applyparallelworker.c:17–23 assigns an available worker when a transaction's first stream arrives. That worker retains the assignment through commit. applyparallelworker.c:1649 waits for the worker to finish. This supports one worker per assigned streamed transaction and preserves commit order.
Review: We checked assignment and commit waiting. These ranges support one worker per streamed transaction. They do not establish ordinary nonstreamed transaction execution or the configured concurrency limit.

Sources:
- [REL_18_6 · src/backend/replication/logical/applyparallelworker.c:17-23](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/applyparallelworker.c#L17-L23)
  Excerpt:
  ```text
  * The parallel apply workers are assigned (if available) as soon as xact's
 * first stream is received for subscriptions that have set their 'streaming'
 * option as parallel. The leader apply worker will send changes to this new
 * worker via shared memory. We keep this worker assigned till the transaction
 * commit is received and also wait for the worker to finish at commit.
  ```
- [REL_18_6 · src/backend/replication/logical/worker.c:2214-2223](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/worker.c#L2214-L2223)
  Excerpt:
  ```text
  case TRANS_LEADER_PARTIAL_SERIALIZE:
			Assert(winfo);

			stream_open_and_write_change(xid, LOGICAL_REP_MSG_STREAM_COMMIT,
										 &original_msg);

			pa_set_fileset_state(winfo->shared, FS_SERIALIZE_DONE);

			/* Finish processing the streaming transaction. */
			pa_xact_finish(winfo, commit_data.end_lsn);
  ```
- [REL_18_6 · src/backend/replication/logical/applyparallelworker.c:1634-1654](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/applyparallelworker.c#L1634-L1654)
  Excerpt:
  ```text
  pa_free_worker(winfo);
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F3

### F4 · Accurate · Factual · The reorder buffer selects the largest streamable transaction under memory pressure
Location: Article · exact quote · [open in article](https://thebuild.com/blog/all-your-gucs-in-a-row-max_parallel_apply_workers_per_subscription#:~:text=it%20starts%20sending%20its%20largest%20transaction%20downstream)
Article says:
```text
…it starts sending its largest transaction downstream…
```
What is true:
reorderbuffer.c:3937 selects ReorderBufferLargestStreamableTopTXN when streaming can start. The memory limit defaults to 64 MiB per reorder buffer. PostgreSQL can stream changes before commit. If streaming cannot start, it can serialize decoded changes on the publisher instead.
Charitable reading:
The article discusses a subscription that enables transaction streaming. PostgreSQL must also consider whether a transaction is streamable.
Review: We tested the largest-transaction claim against streamability and aggregate memory accounting. The finding includes the streamability qualification. E-22 identifies the 64 MiB limit per reorder buffer. We checked aggregate memory accounting and streaming eligibility. The finding specifies the largest streamable transaction and preserves the publisher-side serialization fallback.

Sources:
- [REL_18_6 · src/backend/replication/logical/reorderbuffer.c:3937-3950](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/reorderbuffer.c#L3937-L3950)
  Excerpt:
  ```text
  if (ReorderBufferCanStartStreaming(rb) &&
			(txn = ReorderBufferLargestStreamableTopTXN(rb)) != NULL)
  ```
- [REL_18_6 · src/backend/utils/misc/guc_tables.c:2605-2612](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/misc/guc_tables.c#L2605-L2612)
  Excerpt:
  ```text
  &logical_decoding_work_mem,
		65536, 64, MAX_KILOBYTES,
  ```
- [REL_18_6 · doc/src/sgml/config.sgml:2081-2100](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L2081-L2100)
  Excerpt:
  ```text
  Specifies the maximum amount of memory to be used by logical decoding,
        before some of the decoded changes are written to local disk. This
        limits the amount of memory used by logical streaming replication
        connections. It defaults to 64 megabytes (<literal>64MB</literal>).
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F4

### F5 · Accurate · Factual · The normal retained-worker limit is half the setting, rounded down
Location: Article · exact quote · [open in article](https://thebuild.com/blog/all-your-gucs-in-a-row-max_parallel_apply_workers_per_subscription#:~:text=The%20number%20kept%20is%20half%20of%20this%20setting%2C%20rounded%20down)
Article says:
```text
The number kept is half of this setting, rounded down…
```
What is true:
applyparallelworker.c:576 stops completed workers while the pool exceeds half the configured limit. Integer division rounds down. A limit of 1 worker retains no completed worker. Reloading a lower limit does not immediately remove idle workers because this check runs when PostgreSQL releases a completed worker.
Charitable reading:
The retention count describes the normal completed-worker pool. Queue-timeout serialization can also force worker exit.
Review: We checked whether the retention count guarantees that many idle workers. The finding states a limit. Integer division and completion-time cleanup support that limit, including zero retained workers at setting 1. We checked whether retention counts active workers and whether reload immediately evicts idle workers. The release-time check supports the stated normal limit. The finding does not promise immediate convergence after reload.

Sources:
- [REL_18_6 · src/backend/replication/logical/applyparallelworker.c:576-587](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/applyparallelworker.c#L576-L587)
  Excerpt:
  ```text
  if (winfo->serialize_changes ||
		list_length(ParallelApplyWorkerPool) >
		(max_parallel_apply_workers_per_subscription / 2))
	{
		logicalrep_pa_worker_stop(winfo);
		pa_free_worker_info(winfo);

		return;
	}

	winfo->in_use = false;
	winfo->serialize_changes = false;
  ```
- [REL_18_6 · src/backend/replication/logical/applyparallelworker.c:550-590](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/applyparallelworker.c#L550-L590)
  Excerpt:
  ```text
  if (winfo->serialize_changes ||
		list_length(ParallelApplyWorkerPool) >
		(max_parallel_apply_workers_per_subscription / 2))
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F5

### F6 · Accurate · Factual · Table synchronization and pending SKIP prevent parallel worker allocation
Location: Article · exact quote · [open in article](https://thebuild.com/blog/all-your-gucs-in-a-row-max_parallel_apply_workers_per_subscription#:~:text=Every%20table%20in%20the%20subscription,to%20be%20in%20state%20r)
Article says:
```text
Every table in the subscription has to be in state r…
```
What is true:
applyparallelworker.c:312 requires all subscription tables to be ready. A pending skip LSN forces serialization before application. worker.c:4476 requires a publisher running PostgreSQL 16 or later for parallel streaming. pg_subscription.substream = p records the requested mode. It does not establish that PostgreSQL allocated a worker.
Charitable reading:
The prerequisites describe worker eligibility, not whether the subscription catalog still requests parallel streaming.
Review: We checked whether catalog mode p proves runtime eligibility. E-27 and E-28 independently reject allocation. E-29 requires publisher version 16 or later. The finding preserves these distinctions. We tested whether the catalog's parallel mode overrides readiness, skip, or publisher checks. The source keeps those eligibility checks separate. The finding preserves that distinction.

Sources:
- [REL_18_6 · src/backend/replication/logical/applyparallelworker.c:302-313](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/applyparallelworker.c#L302-L313)
  Excerpt:
  ```text
  if (!AllTablesyncsReady())
		return false;
  ```
- [REL_18_6 · src/backend/replication/logical/applyparallelworker.c:290-303](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/applyparallelworker.c#L290-L303)
  Excerpt:
  ```text
  * streaming transactions, we need to serialize the transaction to a file
	 * so that we can get the last LSN of the transaction to judge whether to
	 * skip before starting to apply the change.
  ```
- [REL_18_6 · src/backend/replication/logical/worker.c:4476-4486](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/worker.c#L4476-L4486)
  Excerpt:
  ```text
  if (server_version >= 160000 &&
		MySubscription->stream == LOGICALREP_STREAM_PARALLEL)
	{
		options->proto.logical.streaming_str = "parallel";
		MyLogicalRepWorker->parallel_apply = true;
  ```
- [REL_18_6 · src/include/catalog/pg_subscription.h:173-177](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/include/catalog/pg_subscription.h#L173-L177)
  Excerpt:
  ```text
  #define LOGICALREP_STREAM_PARALLEL 'p'
  ```
- [REL_18_6 · doc/src/sgml/catalogs.sgml:8026-8028](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/catalogs.sgml#L8026-L8028)
  Excerpt:
  ```text
  <literal>p</literal> = apply changes directly using a parallel apply
       worker if available (same as <literal>t</literal> if no worker is
       available)
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F6

### F7 · Accurate · Factual · Verified accurate: “…SELECT subname, worker_type, pid, leader_pid FROM pg_stat_subscription;…”
Location: excerpt · section “Running out is silent” · as fetched 2026-10-21 · [open in article](https://thebuild.com/blog/all-your-gucs-in-a-row-max_parallel_apply_workers_per_subscription#:~:text=SELECT%20subname%2C%20worker_type%2C%20pid%2C%20leader_pid%20FROM%20pg_stat_subscription%3B)
Article says:
```text
…SELECT subname, worker_type, pid, leader_pid FROM pg_stat_subscription;…
```
What is true:
system_views.sql:979–985 exposes subname, worker_type, pid, and leader_pid in pg_stat_subscription. The article's SELECT names supported columns in PostgreSQL 18.6. This range does not verify the displayed worker labels or process IDs.
Review: We checked all four selected columns. E-33 confirms their existence but does not define worker_type values or leader_pid semantics. The finding's interpretation of worker kinds exceeds that range.

Sources:
- [REL_18_6 · src/backend/catalog/system_views.sql:979-985](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/system_views.sql#L979-L985)
  Excerpt:
  ```text
  CREATE VIEW pg_stat_subscription AS
    SELECT
            su.oid AS subid,
            su.subname,
            st.worker_type,
            st.pid,
            st.leader_pid,
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F7

### F8 · Accurate · Factual · log_temp_files = 0 logs temporary-file deletion
Location: Article · exact quote · [open in article](https://thebuild.com/blog/all-your-gucs-in-a-row-max_parallel_apply_workers_per_subscription#:~:text=With%20log_temp_files%20set%20to%200)
Article says:
```text
With log_temp_files set to 0…
```
What is true:
fd.c:1532 reports temporary-file names and sizes when log_temp_files permits them. A setting of 0 logs every reported file. PathNameDeleteTemporaryFile calls that function after deletion. The documentation states the same timing and records sizes in bytes.
Charitable reading:
The example concerns an individual changes file. Other transactions can produce additional temporary files.
Review: We tested creation-time versus deletion-time logging and the zero threshold. The documentation and reporting function agree. The finding limits its claim to reported temporary files. We tested whether logging occurs at creation or deletion and whether zero excludes small files. Code and documentation support deletion-time reporting with a zero threshold.

Sources:
- [REL_18_6 · doc/src/sgml/config.sgml:8218-8240](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L8218-L8240)
  Excerpt:
  ```text
  If enabled by this setting, a log entry is emitted for each
        temporary file, with the file size specified in bytes, when it is deleted.
        A value of zero logs all temporary file information, while positive
        values log only files whose size is greater than or equal to
        the specified amount of data.
  ```
- [REL_18_6 · src/backend/storage/file/fd.c:1965-1966](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/file/fd.c#L1965-L1966)
  Excerpt:
  ```text
  if (stat_errno == 0)
		ReportTemporaryFileUsage(path, filestats.st_size);
  ```
- [REL_18_6 · src/backend/storage/file/fd.c:1532-1543](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/file/fd.c#L1532-L1543)
  Excerpt:
  ```text
  pgstat_report_tempfile(size);

	if (log_temp_files >= 0)
	{
		if ((size / 1024) >= log_temp_files)
			ereport(LOG,
					(errmsg("temporary file: path \"%s\", size %lu",
							path, (unsigned long) size)));
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F8

### F9 · Accurate · Factual · The subscriber's temp_bytes counter includes these temporary files
Location: excerpt · section “Running out is silent” · as fetched 2026-10-21 · [open in article](https://thebuild.com/blog/all-your-gucs-in-a-row-max_parallel_apply_workers_per_subscription#:~:text=pg_stat_database.temp_bytes%20on%20the%20subscriber%20counts%20the%20same%20files)
Article says:
```text
pg_stat_database.temp_bytes on the subscriber counts the same files…
```
What is true:
fd.c:1966 reports deleted temporary-file sizes. pgstat_database.c:218 adds each reported size to temp_bytes for the current database. The counter includes other temporary-file activity too. PostgreSQL does not require log_temp_files = 0 to count these bytes.
Charitable reading:
The claim says these files contribute to the counter. It does not say the counter isolates replication files.
Review: We checked whether log_temp_files controls statistics collection. E-7 reports sizes before testing the logging threshold. E-37 adds those sizes to the current database's temp_bytes. We tested whether temp_bytes depends on enabled logging or isolates replication files. Statistics update before the logging check. The finding explicitly includes other temporary-file activity.

Sources:
- [REL_18_6 · src/backend/utils/activity/pgstat_database.c:218-220](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/activity/pgstat_database.c#L218-L220)
  Excerpt:
  ```text
  dbent = pgstat_prep_database_pending(MyDatabaseId);
	dbent->temp_bytes += filesize;
	dbent->temp_files++;
  ```
- [REL_18_6 · src/backend/storage/file/fd.c:1965-1966](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/file/fd.c#L1965-L1966)
  Excerpt:
  ```text
  if (stat_errno == 0)
		ReportTemporaryFileUsage(path, filestats.st_size);
  ```
- [REL_18_6 · src/backend/storage/file/fd.c:1532-1543](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/file/fd.c#L1532-L1543)
  Excerpt:
  ```text
  pgstat_report_tempfile(size);

	if (log_temp_files >= 0)
	{
		if ((size / 1024) >= log_temp_files)
			ereport(LOG,
					(errmsg("temporary file: path \"%s\", size %lu",
							path, (unsigned long) size)));
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F9

### F10 · Accurate · Factual · stream_txns counts distinct transactions streamed by a logical slot
Location: excerpt · section “Running out is silent” · as fetched 2026-10-21 · [open in article](https://thebuild.com/blog/all-your-gucs-in-a-row-max_parallel_apply_workers_per_subscription#:~:text=stream_txns%20in%20the%20publisher%E2%80%99s%20pg_stat_replication_slots)
Article says:
```text
…stream_txns in the publisher’s pg_stat_replication_slots…
```
What is true:
reorderbuffer.c:4435 increments streamTxns only when the transaction has not already streamed. The counter counts top-level transactions rather than chunks. It measures publisher streaming activity. It does not report whether the subscriber obtained a parallel worker.
Charitable reading:
Candidates means transactions actually streamed by the publisher. It does not mean successful parallel worker assignments.
Review: We tested whether stream_txns counts chunks or successful worker assignments. E-40 excludes already-streamed transactions. E-41 identifies top-level transactions. The finding does not equate streaming with successful allocation. We checked whether stream_txns counts chunks, subtransactions, or successful worker assignments. The source and documentation support distinct streamed top-level transactions.

Sources:
- [REL_18_6 · src/backend/replication/logical/reorderbuffer.c:4431-4438](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/reorderbuffer.c#L4431-L4438)
  Excerpt:
  ```text
  rb->streamCount += 1;
	rb->streamBytes += stream_bytes;

	/* Don't consider already streamed transaction. */
	rb->streamTxns += (txn_is_streamed) ? 0 : 1;
  ```
- [REL_18_6 · doc/src/sgml/monitoring.sgml:1589-1594](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/monitoring.sgml#L1589-L1594)
  Excerpt:
  ```text
  Number of in-progress transactions streamed to the decoding output
        plugin after the memory used by logical decoding to decode changes
        from WAL for this slot has exceeded
        <literal>logical_decoding_work_mem</literal>. Streaming only
        works with top-level transactions (subtransactions can't be streamed
        independently), so the counter is not incremented for subtransactions.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F10

### F11 · Accurate · Factual · PostgreSQL 19 beta 3 enables log_lock_waits by default
Location: Article · exact quote · [open in article](https://thebuild.com/blog/all-your-gucs-in-a-row-max_parallel_apply_workers_per_subscription#:~:text=With%20log_lock_waits%20on%2C%20which%20I,which%2019%20does%20by%20default)
Article says:
```text
With log_lock_waits on, which I recommended and which 19 does by default…
```
What is true:
guc_parameters.dat:1744 sets log_lock_waits to true in PostgreSQL 19 beta 3. Parallel workers use heavyweight stream locks between chunks. deadlock_timeout controls when PostgreSQL logs those waits. Separately, ALTER SUBSCRIPTION SKIP requires a finish LSN. PostgreSQL 18 documents serial retry when parallel apply omits that LSN.
Charitable reading:
The default claim explicitly concerns PostgreSQL 19. PostgreSQL 18's different default does not contradict it.
Review: We checked the PostgreSQL 19 beta 3 default separately from PostgreSQL 18 behavior. E-43 sets true. The lock and finish-LSN statements also match their cited ranges. We checked for confusion between PostgreSQL 18 and 19 defaults. The cited beta sets log_lock_waits to true. Separate citations support stream locks, timeout logging, and finish-LSN recovery.

Sources:
- [REL_19_BETA3 · src/backend/utils/misc/guc_parameters.dat:1744-1748](https://github.com/postgres/postgres/blob/3638289fb57bdabec00deda98ee9624a35f5d66a/src/backend/utils/misc/guc_parameters.dat#L1744-L1748)
  Qualification: Version note: Checked the stated PostgreSQL 19 beta 3 default.
  Excerpt:
  ```text
  { name => 'log_lock_waits', type => 'bool', context => 'PGC_SUSET', group => 'LOGGING_WHAT',
  short_desc => 'Logs long lock waits.',
  variable => 'log_lock_waits',
  boot_val => 'true',
},
  ```
- [REL_18_6 · src/backend/replication/logical/applyparallelworker.c:90-95](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/applyparallelworker.c#L90-L95)
  Excerpt:
  ```text
  * the lock in AccessExclusive mode before sending the STREAM_STOP and will
 * release it if already acquired after sending the STREAM_START, STREAM_ABORT
 * (for toplevel transaction), STREAM_PREPARE, and STREAM_COMMIT. The PA will
 * acquire the lock in AccessShare mode after processing STREAM_STOP and
 * STREAM_ABORT (for subtransaction) and then release the lock immediately
 * after acquiring it.
  ```
- [REL_18_6 · doc/src/sgml/config.sgml:11233-11277](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L11233-L11277)
  Excerpt:
  ```text
  When <xref linkend="guc-log-lock-waits"/> is set,
        this parameter also determines the amount of time to wait before
        a log message is issued about the lock wait.
  ```
- [REL_18_6 · src/backend/storage/lmgr/proc.c:1552-1631](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/lmgr/proc.c#L1552-L1631)
  Excerpt:
  ```text
  if (log_lock_waits && deadlock_state != DS_NOT_YET_CHECKED)
  ```
- [REL_18_6 · doc/src/sgml/ref/alter_subscription.sgml:319-323](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/alter_subscription.sgml#L319-L323)
  Excerpt:
  ```text
  Specifies the finish LSN of the remote transaction whose changes
          are to be skipped by the logical replication worker.  The finish LSN
          is the LSN at which the transaction is either committed or prepared.
  ```
- [REL_18_6 · doc/src/sgml/logical-replication.sgml:2039-2043](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/logical-replication.sgml#L2039-L2043)
  Excerpt:
  ```text
  mode is <literal>parallel</literal>, the finish LSN of failed transactions
   may not be logged. In that case, it may be necessary to change the streaming
   mode to <literal>on</literal> or <literal>off</literal> and cause the same
   conflicts again so the finish LSN of the failed transaction will be written
   to the server log.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F11

### F12 · Accurate · Factual · PostgreSQL 16 introduced parallel apply and its worker limit
Location: Article · exact quote · [open in article](https://thebuild.com/blog/all-your-gucs-in-a-row-max_parallel_apply_workers_per_subscription#:~:text=It%20arrived%20in%20PostgreSQL%2016%20along%20with%20streaming%20%3D%20parallel)
Article says:
```text
It arrived in PostgreSQL 16 along with streaming = parallel…
```
What is true:
PostgreSQL 16.0 release notes introduce streaming=parallel and max_parallel_apply_workers_per_subscription together. See doc/src/sgml/release-16.sgml:1749-1754.
Charitable reading:
The statement identifies the release that introduced both features.
Review: We checked the PostgreSQL 16.0 release floor. Its release notes introduce parallel streaming and the worker-limit setting together. We checked whether streaming generally predates the claimed release. The article identifies parallel streaming and its worker limit. PostgreSQL 16 release notes introduce both together.

Sources:
- [REL_16_0 · doc/src/sgml/release-16.sgml:1736-1756](https://github.com/postgres/postgres/blob/c372fbbd8e911f2412b80a8c39d7079366565d67/doc/src/sgml/release-16.sgml#L1736-L1756)
  Excerpt:
  ```text
  option now supports <literal>parallel</literal> to enable
       application of large transactions by parallel workers.  The number
       of parallel workers is controlled by the new server variable <link
       linkend="guc-max-parallel-apply-workers-per-subscription"><varname>max_parallel_apply_workers_per_subscription</varname></link>.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F12

### F13 · Accurate · Factual · PostgreSQL 18 changed the subscription streaming default to parallel
Location: Article · exact quote · [open in article](https://thebuild.com/blog/all-your-gucs-in-a-row-max_parallel_apply_workers_per_subscription#:~:text=PostgreSQL%2018%20made%20it%20the%20default%20for%20CREATE%20SUBSCRIPTION)
Article says:
```text
PostgreSQL 18 made it the default for CREATE SUBSCRIPTION…
```
What is true:
PostgreSQL 18 changed CREATE SUBSCRIPTION's streaming default from off to parallel. See doc/src/sgml/release-18.sgml:10426-10427.
Charitable reading:
The default concerns newly created subscriptions. Existing subscriptions retain their settings.
Review: We tested whether the finding extends the new default to existing subscriptions. It does not. E-52 explicitly records the CREATE SUBSCRIPTION default change. We checked whether the claim incorrectly covers existing subscriptions. It concerns CREATE SUBSCRIPTION. PostgreSQL 18 release notes explicitly change that default from off to parallel.

Sources:
- [REL_18_6 · doc/src/sgml/release-18.sgml:10419-10438](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/release-18.sgml#L10419-L10438)
  Excerpt:
  ```text
  Change the default <xref linkend="sql-createsubscription"/> streaming
      option from <literal>off</literal> to <literal>parallel</literal>
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F13

### F14 · Accurate · Factual · pg_dump explicitly preserves an existing streaming=off setting
Location: Article · exact quote · [open in article](https://thebuild.com/blog/all-your-gucs-in-a-row-max_parallel_apply_workers_per_subscription#:~:text=pg_dump%20in%2018%20writes%20streaming%20%3D%20off%20explicitly)
Article says:
```text
…pg_dump in 18 writes streaming = off explicitly…
```
What is true:
PostgreSQL 18.6 pg_dump emits streaming=off for an off subscription. It also preserves on and parallel. See src/bin/pg_dump/pg_dump.c:5378-5383.
Charitable reading:
The preceding upgrade sentence supplies the preservation context. The statement does not require every dump to select off.
Review: We tested a universal reading that every dump emits off. The surrounding preservation context supports the narrower reading. The finding correctly states that pg_dump preserves on, parallel, and off. We tested the literal reading that every dump writes streaming=off. The preceding preservation context supports the narrower reading. The finding correctly states that pg_dump preserves all three modes.

Sources:
- [REL_18_6 · src/bin/pg_dump/pg_dump.c:5370-5394](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/bin/pg_dump/pg_dump.c#L5370-L5394)
  Excerpt:
  ```text
  if (subinfo->substream == LOGICALREP_STREAM_ON)
		appendPQExpBufferStr(query, ", streaming = on");
	else if (subinfo->substream == LOGICALREP_STREAM_PARALLEL)
		appendPQExpBufferStr(query, ", streaming = parallel");
	else
		appendPQExpBufferStr(query, ", streaming = off");
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F14

### F15 · Accurate · Factual · The documentation qualifies parallel application by worker availability
Location: Article · exact quote · [open in article](https://thebuild.com/blog/all-your-gucs-in-a-row-max_parallel_apply_workers_per_subscription#:~:text=changes%20go%20to%20a%20parallel%20apply%20worker%20%E2%80%9Cif%20available%2C%E2%80%9D)
Article says:
```text
…changes go to a parallel apply worker “if available,”…
```
What is true:
The documentation says incoming changes use parallel workers if available. Otherwise, temporary files retain changes until commit. See doc/src/sgml/ref/create_subscription.sgml:275-278.
Charitable reading:
The article quotes the availability qualification. Its comma follows American quotation punctuation.
Review: We checked the availability wording and fallback against create_subscription.sgml. Both match. The finding does not claim worker exhaustion is the only possible serialization cause. We checked the quoted availability qualification and fallback. The documentation contains both. The finding verifies the documentation's wording without making worker availability the only serialization cause.

Sources:
- [REL_18_6 · doc/src/sgml/ref/create_subscription.sgml:260-289](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/create_subscription.sgml#L260-L289)
  Excerpt:
  ```text
  meaning incoming changes are directly applied via one of the parallel
          apply workers, if available. If no parallel apply worker is free to
          handle streaming transactions then the changes are written to
          temporary files and applied after the transaction is committed. Note
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F15

### F17 · Accurate · Factual · Parallel apply requires a PostgreSQL 16 or later publisher
Location: Article · exact quote · [open in article](https://thebuild.com/blog/all-your-gucs-in-a-row-max_parallel_apply_workers_per_subscription#:~:text=The%20publisher%20has%20to%20be%2016%20or%20later.)
Article says:
```text
The publisher has to be 16 or later.
```
What is true:
PostgreSQL 18.6 enables parallel apply only when server_version reaches 160000. PostgreSQL 14 and 15 use streaming on. See src/backend/replication/logical/worker.c:4476-4486.
Charitable reading:
The version floor concerns parallel apply rather than streaming generally.
Review: We distinguished parallel apply from ordinary streaming. E-60 selects parallel at server_version 160000 and on for eligible PostgreSQL 14 or 15 publishers. We checked whether PostgreSQL 14 or 15 publishers can negotiate parallel apply. The source selects parallel at version 160000 and ordinary streaming for supported older publishers.

Sources:
- [REL_18_6 · src/backend/replication/logical/worker.c:4470-4494](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/worker.c#L4470-L4494)
  Excerpt:
  ```text
  if (server_version >= 160000 &&
		MySubscription->stream == LOGICALREP_STREAM_PARALLEL)
	{
		options->proto.logical.streaming_str = "parallel";
		MyLogicalRepWorker->parallel_apply = true;
	}
	else if (server_version >= 140000 &&
			 MySubscription->stream != LOGICALREP_STREAM_OFF)
	{
		options->proto.logical.streaming_str = "on";
		MyLogicalRepWorker->parallel_apply = false;
	}
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F17

### F18 · Accurate · Factual · A pending skip LSN prevents parallel-worker assignment
Location: Article · exact quote · [open in article](https://thebuild.com/blog/all-your-gucs-in-a-row-max_parallel_apply_workers_per_subscription#:~:text=a%20pending%20ALTER%20SUBSCRIPTION,SKIP%20turns%20parallel%20apply%20off)
Article says:
```text
…a pending ALTER SUBSCRIPTION ... SKIP turns parallel apply off…
```
What is true:
pa_can_start returns false when the subscription has a valid skip LSN. See src/backend/replication/logical/applyparallelworker.c:302-303.
Charitable reading:
The claim concerns assigning streamed transactions while a skip LSN remains pending.
Review: We checked whether a pending skip merely affects the targeted transaction. E-62 rejects worker startup whenever skiplsn remains valid. The finding correctly describes assignment eligibility. We checked whether pending SKIP only affects the matching transaction's eventual commit. The allocation gate rejects any valid pending skip LSN before assigning a worker.

Sources:
- [REL_18_6 · src/backend/replication/logical/applyparallelworker.c:260-315](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/applyparallelworker.c#L260-L315)
  Excerpt:
  ```text
  if (!XLogRecPtrIsInvalid(MySubscription->skiplsn))
		return false;
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F18

### F19 · Accurate · Factual · Parallel apply preserves commit ordering
Location: Article · exact quote · [open in article](https://thebuild.com/blog/all-your-gucs-in-a-row-max_parallel_apply_workers_per_subscription#:~:text=commit%20order%20holds%20there%20too)
Article says:
```text
…commit order holds there too…
```
What is true:
The leader retains the assigned worker through commit and waits for completion. This preserves commit order. See src/backend/replication/logical/applyparallelworker.c:20-22.
Charitable reading:
Commit ordering does not require each transaction's changes to execute serially.
Review: We tested whether concurrent application implies unordered commits. E-64 explicitly requires the leader to wait at commit and identifies commit ordering as the purpose. We tested whether concurrent application contradicts ordered commits. The source explicitly waits for the assigned worker at commit to preserve commit ordering.

Sources:
- [REL_18_6 · src/backend/replication/logical/applyparallelworker.c:1-110](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/applyparallelworker.c#L1-L110)
  Excerpt:
  ```text
  * worker via shared memory. We keep this worker assigned till the transaction
 * commit is received and also wait for the worker to finish at commit. This
 * preserves commit ordering and avoid file I/O in most cases, although we
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F19

### F20 · Accurate · Factual · The accepted range is 0–1024 workers
Location: Article · exact quote · [open in article](https://thebuild.com/blog/all-your-gucs-in-a-row-max_parallel_apply_workers_per_subscription#:~:text=range%200%20to%201024)
Article says:
```text
…range 0 to 1024…
```
What is true:
guc_tables.c:3385 sets the lower bound to 0. bgworker_internals.h:24 defines the upper bound as 1024.
Charitable reading:
The stated range describes accepted configuration values, rather than available runtime workers.
Review: We checked the named upper-bound constant instead of assuming its value. E-67 defines 1024. The finding describes accepted configuration values, not guaranteed worker availability. We checked whether 1,024 describes actual available workers rather than accepted configuration values. The finding states the accepted range, which the parameter definition and constant confirm.

Sources:
- [REL_18_6 · src/backend/utils/misc/guc_tables.c:3376-3388](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/misc/guc_tables.c#L3376-L3388)
  Excerpt:
  ```text
  &max_parallel_apply_workers_per_subscription,
		2, 0, MAX_PARALLEL_WORKER_LIMIT,
  ```
- [REL_18_6 · src/include/postmaster/bgworker_internals.h:24-24](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/include/postmaster/bgworker_internals.h#L24-L24)
  Excerpt:
  ```text
  #define MAX_PARALLEL_WORKER_LIMIT 1024
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F20

### F21 · Accurate · Factual · Verified accurate: “…Three conditions send every streamed transaction to a file no matter what this is set to…”
Location: Article · exact quote · [open in article](https://thebuild.com/blog/all-your-gucs-in-a-row-max_parallel_apply_workers_per_subscription#:~:text=Three%20conditions%20send%20every%20streamed,what%20this%20is%20set%20to)
Article says:
```text
…Three conditions send every streamed transaction to a file no matter what this is set to…
```
What is true:
worker.c:4476–4491 enables parallel mode only with publisher version 16 or later. applyparallelworker.c:302–313 rejects new parallel-worker assignments while skiplsn is set or table synchronization remains incomplete. These ranges establish eligibility checks, not termination of existing parallel transactions.
Review: We checked whether these conditions stop existing parallel work. pa_can_start governs eligibility for new assignments. Its checks support a narrower statement than disabling parallel apply without qualification.

Sources:
- [REL_18_6 · src/backend/replication/logical/applyparallelworker.c:260-318](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/applyparallelworker.c#L260-L318)
  Excerpt:
  ```text
  if (!XLogRecPtrIsInvalid(MySubscription->skiplsn))
		return false;
  ```
- [REL_18_6 · src/backend/replication/logical/applyparallelworker.c:260-318](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/applyparallelworker.c#L260-L318)
  Excerpt:
  ```text
  if (!AllTablesyncsReady())
		return false;
  ```
- [REL_18_6 · src/backend/replication/logical/worker.c:4445-4495](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/worker.c#L4445-L4495)
  Excerpt:
  ```text
  if (server_version >= 160000 &&
		MySubscription->stream == LOGICALREP_STREAM_PARALLEL)
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F21

### F22 · Accurate · Factual · The displayed file size rounds to 133 MB
Location: Article · exact quote · [open in article](https://thebuild.com/blog/all-your-gucs-in-a-row-max_parallel_apply_workers_per_subscription#:~:text=all%20133MB%20of%20it)
Article says:
```text
…all 133MB of it…
```
What is true:
The displayed file contains 133 MB after rounding (derived: 133,488,942 bytes / 1,000,000). config.sgml:8231 specifies bytes for this log field.
Charitable reading:
The article rounds a decimal megabyte count to three significant figures.
Review: We recalculated the displayed size: 133,488,942 bytes equals 133.488942 MB, which rounds to 133 MB. The finding verifies conversion, not measurement provenance. We recalculated 133,488,942 bytes as 133.488942 decimal MB. Rounding gives 133 MB. The finding verifies arithmetic and does not claim to reproduce the measurement.

Sources:
- [REL_18_6 · doc/src/sgml/config.sgml:8218-8240](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L8218-L8240)
  Excerpt:
  ```text
  temporary file, with the file size specified in bytes, when it is deleted.
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F22

### F23 · Accurate · Factual · The parallel apply data queue is 16 MiB
Location: Article · exact quote · [open in article](https://thebuild.com/blog/all-your-gucs-in-a-row-max_parallel_apply_workers_per_subscription#:~:text=a%20new%2016MB%20shared%20memory%20queue)
Article says:
```text
…a new 16MB shared memory queue…
```
What is true:
applyparallelworker.c:187 defines DSM_QUEUE_SIZE as 16 × 1024 × 1024 bytes, or 16 MiB.
Charitable reading:
The article uses MB in PostgreSQL’s conventional binary sense.
Review: We checked decimal versus binary units. DSM_QUEUE_SIZE equals 16,777,216 bytes, or 16 MiB. The finding uses the exact binary unit without charging a cosmetic notation difference. We checked the queue constant and binary-unit conversion. DSM_QUEUE_SIZE equals 16 MiB. The finding does not confuse queue capacity with total worker memory.

Sources:
- [REL_18_6 · src/backend/replication/logical/applyparallelworker.c:187-187](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/applyparallelworker.c#L187-L187)
  Excerpt:
  ```text
  #define DSM_QUEUE_SIZE	(16 * 1024 * 1024)
  ```

Finding URL: https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F23

## Notes (not graded) (0)

None.

## Withdrawn findings (0)

None.

## Section checks

- Parameter overview · A · 5 verified-accurate · 92% of claims (13 of 14)
- Streaming and commit order · A · 3 verified-accurate · 90% of claims (10 of 11, plus 2 that need data we do not have)
- Worker exhaustion · B+ · 1 inaccuracy · 6 verified-accurate · 90% of claims (18 of 20, plus 5 that need data we do not have)
- Parallel apply prerequisites · A · 4 verified-accurate · 88% of claims (8 of 9, plus 4 that need data we do not have)
- Worker reuse and disabling parallel apply · A · 2 verified-accurate · 40% of claims (4 of 10, plus 1 that need data we do not have) provisional
- Conflict diagnostics · A · 1 verified-accurate · 83% of claims (5 of 6, plus 3 that need data we do not have)

## Claim coverage

- Parameter overview: 13 of 14 Postgres claims checked; not counted: 1 product or opinion, 3 not a claim; not checked: 1 for other reasons
- Streaming and commit order: 10 of 11 Postgres claims checked, plus 2 that need data we do not have; not counted: 1 duplicate; not checked: 1 for other reasons
- Timing example: 6 claims are the author's own account; nothing checkable; not counted: 2 product or opinion
- Worker exhaustion: 18 of 20 Postgres claims checked, plus 5 that need data we do not have; not counted: 1 duplicate, 1 not a claim; not checked: 2 for other reasons
- Parallel apply prerequisites: 8 of 9 Postgres claims checked, plus 4 that need data we do not have; not counted: 2 not a claim; not checked: 1 for other reasons
- Worker reuse and disabling parallel apply: 4 of 10 Postgres claims checked, plus 1 that need data we do not have; not counted: 1 product or opinion, 5 duplicate, 1 not a claim; not checked: 6 for other reasons
- Conflict diagnostics: 5 of 6 Postgres claims checked, plus 3 that need data we do not have; not checked: 1 for other reasons
- Lock-wait logging: 6 of 6 Postgres claims checked, plus 3 that need data we do not have; not counted: 1 product or opinion, 1 not a claim
- Tuning recommendations: 4 of 5 Postgres claims checked, plus 1 that need data we do not have; not counted: 1 duplicate, 1 not a claim; not checked: 1 for other reasons

## What we did not check

- We did not reproduce the transaction timings, temporary-file sizes, or displayed process states.
- We did not establish whether 2 parallel apply workers suits a particular production workload.
- We did not reproduce the PostgreSQL 18.6 and 19 beta 3 measurements or displayed logs.
- We did not check every worker-allocation, retirement, reload, and error-reporting path.
- We did not establish every behavior change between PostgreSQL 19 beta 3 and October 21, 2026.
- We checked the related posts but did not independently verify their separate tuning recommendations.
- We did not reproduce the article’s timing, spill-volume, or worker-wait measurements.
- We did not verify the proportion of OLTP transactions below the 64 MB decoding threshold.
- Section “Worker reuse and disabling parallel apply”: we checked 4 of 11 checkable claims.
- We could not decide whether the published benchmark details are complete.
- We could not decide whether the article depends on finding F1.

## Notes

- B — the findings address the article's main subject. What we did not check is listed below. The findings directly check max_parallel_apply_workers_per_subscription defaults, allocation, prerequisites, worker reuse, and serial fallback diagnostics.
- We did not check everything in this article. What we did not check is listed below, in the words we recorded at the time. None of it moved the letter. We never charge our own limits to the article.
- Average of 5 axes: 3.46 · benchmark not reproducible, one step off (no hardware) · result B
- Some explanatory text is not shown in this edition; the grade and findings are complete.
- Some checks did not happen for this edition, and each one we know of is listed above.
- Checked against: github.com/postgres/postgres REL_18_6 at commit 724edf9bde9d356724ad384a2e196edc3c9f80f7 (pinned target); https://pgexperts.com/ (fetched 2026-10-21T05:06:37.085291Z); https://thebuild.com/blog/all-your-gucs-in-a-row-log_lock_waits-and-log_lock_failures/ (fetched 2026-10-21T05:06:35.878039Z); https://thebuild.com/blog/all-your-gucs-in-a-row-logcheckpoints-logautovacuumminduration-and-logtempfiles/ (fetched 2026-10-21T05:06:34.894123Z); https://thebuild.com/blog/all-your-gucs-in-a-row-logical_decoding_work_mem/ (fetched 2026-10-21T05:06:33.851218Z); https://thebuild.com/blog/all-your-gucs-in-a-row-max_logical_replication_workers/ (fetched 2026-10-21T05:06:32.499178Z); https://thebuild.com/blog/category/postgresql/ (fetched 2026-10-21T05:06:31.536527Z).
- Article captured 2026-10-21T05:06:19.749548Z · SHA-256 35d2adcea9717ddecfc19d08fabf0b12da9d7a5c08a4e4f83dc24dac8e63814a · Text extracted from the article's HTML.
- Policy SHA-256 dee56326e6d8097900844313abe2fca63a85684ec3da925b929d37e3dd21681e · Grading rules SHA-256 6fb334e79d6b9e7ed81d3238cc10d9de602ff87ed65ff2fa781f53bac5798765.
- We did not reproduce the transaction timings, temporary-file sizes, displayed process states, or worker-wait measurements.
- We did not establish whether 2 parallel apply workers suits a particular production workload.
- We did not check every worker-allocation, retirement, reload, and error-reporting path.
- We did not establish every behavior change after PostgreSQL 19 beta 3.
- We checked the related posts but did not independently verify their separate tuning recommendations.
- We did not verify the proportion of OLTP transactions below the 64 MB decoding threshold.
- The article text does not name its author.
- The article gives September 20, 2026, without a time. We list that date at midnight UTC.
- article target version: bound to the most-cited major; also named 16 (1×)
- source: postgres 18 was read at REL_18_6, its newest release when the article was published
- withheld: F16 — this finding failed a check this edition requires.
- review: the findings were written by one model and reviewed independently by a different model.
- 2026-10-28: Regraded under the current grading rules: the letter is the average of the axis letters, with every cap stated under it.
- 6 passages in this edition fell short of our own plain-English rules.
- Built from the article text captured above, one pinned source tree, and 6 fetched pages.
- 19 survived · 3 weakened · 0 withdrawn.

## Revision history

- [Revision 1](https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585?v=39) · 2026-09-21 16:05 UTC · B+ · audit version not recorded · regrade version not recorded
  Article as first submitted. 12 accurate · 1 wrong · 0 caveats.
  ElephantSeal: B+.
  Changes: First audit. Open: F1 “Temporary files do not uniquely identify missing parallel workers” (misleading).
- [Revision 2](https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585?v=44) · 2026-10-19 21:11 UTC · B · audited with v1.0.16 (approx.)
  Article text changed. 19 accurate · 1 wrong · 0 caveats.
  ElephantSeal: B. Open: the benchmark cannot yet be rerun from what is published.
  Changes: No change in findings.
- [Revision 3](https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585?v=47) · this page · 2026-10-21 05:06 UTC · B · audited with v1.0.17 (approx.) · regraded with v1.0.19 (approx.)
  Article text changed. 21 accurate · 1 wrong · 0 caveats.
  ElephantSeal: B. Open: the benchmark cannot yet be rerun from what is published.
  Changes: No longer reported: “STREAM COMMIT temporary files do not prove worker exhaustion”. New: F1 “STREAM COMMIT temporary files do not prove that a transaction lacked a parallel worker” (false).

Updated your article? Request a correction. A new edition appears at this address.