{"schema": "pgtrue.report/1", "url": "https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585", "published": "2026-10-21T05:06:19Z", "publisher": "PostgresAI", "article": {"title": "All Your GUCs in a Row: max_parallel_apply_workers_per_subscription", "url": "https://thebuild.com/blog/all-your-gucs-in-a-row-max_parallel_apply_workers_per_subscription", "date_published": "2026-09-21T01:00:00Z", "author": "Christophe Pettus", "publisher": "thebuild.com"}, "grade": "B", "axes": [{"axis": "Factual", "summary": "B+ \u00b7 1 wrong of 22 checked \u00b7 0 caveats"}, {"axis": "Applicable", "summary": "A \u00b7 0 wrong of 16 checked \u00b7 0 caveats"}, {"axis": "Consistent", "summary": "A \u00b7 0 wrong of 22 checked \u00b7 0 caveats"}, {"axis": "Transparent", "summary": "C \u00b7 0 wrong of 4 checked \u00b7 0 caveats \u00b7 reproducibility: C (no hardware)"}, {"axis": "Safe", "summary": "A \u00b7 0 wrong of 6 checked \u00b7 0 caveats"}], "findings": [{"anchor": "F1", "url": "https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F1", "claim": "\u2026with STREAM COMMIT in its context line is a streamed transaction that did not get a parallel worker\u2026", "title": "STREAM COMMIT temporary files do not prove that a transaction lacked a parallel worker", "explanation": "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.", "verdict": "False", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/applyparallelworker.c#L142-L147", "label": "REL_18_6 \u00b7 src/backend/replication/logical/applyparallelworker.c:142-147"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/applyparallelworker.c#L1230-L1242", "label": "REL_18_6 \u00b7 src/backend/replication/logical/applyparallelworker.c:1230-1242"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/worker.c#L2214-L2223", "label": "REL_18_6 \u00b7 src/backend/replication/logical/worker.c:2214-2223"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/applyparallelworker.c#L1634-L1654", "label": "REL_18_6 \u00b7 src/backend/replication/logical/applyparallelworker.c:1634-1654"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/applyparallelworker.c#L605-L607", "label": "REL_18_6 \u00b7 src/backend/replication/logical/applyparallelworker.c:605-607"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/file/fd.c#L1532-L1543", "label": "REL_18_6 \u00b7 src/backend/storage/file/fd.c:1532-1543"}]}, {"anchor": "F2", "url": "https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F2", "claim": "Default 2 , context sighup , range 0 to 1024\u2026", "title": "The worker limit defaults to 2 and changes on reload", "explanation": "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.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/include/postmaster/bgworker_internals.h#L24-L24", "label": "REL_18_6 \u00b7 src/include/postmaster/bgworker_internals.h:24-24"}, {"url": "https://github.com/postgres/postgres/blob/c372fbbd8e911f2412b80a8c39d7079366565d67/src/backend/utils/misc/guc_tables.c#L3044-L3051", "label": "REL_16_0 \u00b7 src/backend/utils/misc/guc_tables.c:3044-3051"}, {"url": "https://github.com/postgres/postgres/blob/3638289fb57bdabec00deda98ee9624a35f5d66a/src/backend/utils/misc/guc_parameters.dat#L2038-L2044", "label": "REL_19_BETA3 \u00b7 src/backend/utils/misc/guc_parameters.dat:2038-2044"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/misc/guc_tables.c#L3354-L3361", "label": "REL_18_6 \u00b7 src/backend/utils/misc/guc_tables.c:3354-3361"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/launcher.c#L421-L438", "label": "REL_18_6 \u00b7 src/backend/replication/logical/launcher.c:421-438"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/create_subscription.sgml#L273-L278", "label": "REL_18_6 \u00b7 doc/src/sgml/ref/create_subscription.sgml:273-278"}, {"url": "https://github.com/postgres/postgres/blob/c372fbbd8e911f2412b80a8c39d7079366565d67/doc/src/sgml/ref/create_subscription.sgml#L257-L258", "label": "REL_16_0 \u00b7 doc/src/sgml/ref/create_subscription.sgml:257-258"}, {"url": "https://github.com/postgres/postgres/blob/d7ec59a63d745ba74fba0e280bbf85dc6d1caa3e/doc/src/sgml/ref/create_subscription.sgml#L273-L274", "label": "REL_17_0 \u00b7 doc/src/sgml/ref/create_subscription.sgml:273-274"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/misc/guc_tables.c#L3378-L3385", "label": "REL_18_6 \u00b7 src/backend/utils/misc/guc_tables.c:3378-3385"}]}, {"anchor": "F3", "url": "https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F3", "claim": "One transaction, one worker.", "explanation": "applyparallelworker.c:17\u201323 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.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/applyparallelworker.c#L17-L23", "label": "REL_18_6 \u00b7 src/backend/replication/logical/applyparallelworker.c:17-23"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/worker.c#L2214-L2223", "label": "REL_18_6 \u00b7 src/backend/replication/logical/worker.c:2214-2223"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/applyparallelworker.c#L1634-L1654", "label": "REL_18_6 \u00b7 src/backend/replication/logical/applyparallelworker.c:1634-1654"}]}, {"anchor": "F4", "url": "https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F4", "claim": "\u2026it starts sending its largest transaction downstream\u2026", "title": "The reorder buffer selects the largest streamable transaction under memory pressure", "explanation": "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.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/reorderbuffer.c#L3937-L3950", "label": "REL_18_6 \u00b7 src/backend/replication/logical/reorderbuffer.c:3937-3950"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/misc/guc_tables.c#L2605-L2612", "label": "REL_18_6 \u00b7 src/backend/utils/misc/guc_tables.c:2605-2612"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L2081-L2100", "label": "REL_18_6 \u00b7 doc/src/sgml/config.sgml:2081-2100"}]}, {"anchor": "F5", "url": "https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F5", "claim": "The number kept is half of this setting, rounded down\u2026", "title": "The normal retained-worker limit is half the setting, rounded down", "explanation": "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.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/applyparallelworker.c#L576-L587", "label": "REL_18_6 \u00b7 src/backend/replication/logical/applyparallelworker.c:576-587"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/applyparallelworker.c#L550-L590", "label": "REL_18_6 \u00b7 src/backend/replication/logical/applyparallelworker.c:550-590"}]}, {"anchor": "F6", "url": "https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F6", "claim": "Every table in the subscription has to be in state r\u2026", "title": "Table synchronization and pending SKIP prevent parallel worker allocation", "explanation": "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.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/applyparallelworker.c#L302-L313", "label": "REL_18_6 \u00b7 src/backend/replication/logical/applyparallelworker.c:302-313"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/applyparallelworker.c#L290-L303", "label": "REL_18_6 \u00b7 src/backend/replication/logical/applyparallelworker.c:290-303"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/worker.c#L4476-L4486", "label": "REL_18_6 \u00b7 src/backend/replication/logical/worker.c:4476-4486"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/include/catalog/pg_subscription.h#L173-L177", "label": "REL_18_6 \u00b7 src/include/catalog/pg_subscription.h:173-177"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/catalogs.sgml#L8026-L8028", "label": "REL_18_6 \u00b7 doc/src/sgml/catalogs.sgml:8026-8028"}]}, {"anchor": "F7", "url": "https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F7", "claim": "\u2026SELECT subname, worker_type, pid, leader_pid FROM pg_stat_subscription;\u2026", "explanation": "system_views.sql:979\u2013985 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.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/system_views.sql#L979-L985", "label": "REL_18_6 \u00b7 src/backend/catalog/system_views.sql:979-985"}]}, {"anchor": "F8", "url": "https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F8", "claim": "With log_temp_files set to 0\u2026", "title": "log_temp_files = 0 logs temporary-file deletion", "explanation": "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.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L8218-L8240", "label": "REL_18_6 \u00b7 doc/src/sgml/config.sgml:8218-8240"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/file/fd.c#L1965-L1966", "label": "REL_18_6 \u00b7 src/backend/storage/file/fd.c:1965-1966"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/file/fd.c#L1532-L1543", "label": "REL_18_6 \u00b7 src/backend/storage/file/fd.c:1532-1543"}]}, {"anchor": "F9", "url": "https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F9", "claim": "pg_stat_database.temp_bytes on the subscriber counts the same files\u2026", "title": "The subscriber's temp_bytes counter includes these temporary files", "explanation": "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.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/activity/pgstat_database.c#L218-L220", "label": "REL_18_6 \u00b7 src/backend/utils/activity/pgstat_database.c:218-220"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/file/fd.c#L1965-L1966", "label": "REL_18_6 \u00b7 src/backend/storage/file/fd.c:1965-1966"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/file/fd.c#L1532-L1543", "label": "REL_18_6 \u00b7 src/backend/storage/file/fd.c:1532-1543"}]}, {"anchor": "F10", "url": "https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F10", "claim": "\u2026stream_txns in the publisher\u2019s pg_stat_replication_slots\u2026", "title": "stream_txns counts distinct transactions streamed by a logical slot", "explanation": "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.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/reorderbuffer.c#L4431-L4438", "label": "REL_18_6 \u00b7 src/backend/replication/logical/reorderbuffer.c:4431-4438"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/monitoring.sgml#L1589-L1594", "label": "REL_18_6 \u00b7 doc/src/sgml/monitoring.sgml:1589-1594"}]}, {"anchor": "F11", "url": "https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F11", "claim": "With log_lock_waits on, which I recommended and which 19 does by default\u2026", "title": "PostgreSQL 19 beta 3 enables log_lock_waits by default", "explanation": "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.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/3638289fb57bdabec00deda98ee9624a35f5d66a/src/backend/utils/misc/guc_parameters.dat#L1744-L1748", "label": "REL_19_BETA3 \u00b7 src/backend/utils/misc/guc_parameters.dat:1744-1748"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/applyparallelworker.c#L90-L95", "label": "REL_18_6 \u00b7 src/backend/replication/logical/applyparallelworker.c:90-95"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L11233-L11277", "label": "REL_18_6 \u00b7 doc/src/sgml/config.sgml:11233-11277"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/lmgr/proc.c#L1552-L1631", "label": "REL_18_6 \u00b7 src/backend/storage/lmgr/proc.c:1552-1631"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/alter_subscription.sgml#L319-L323", "label": "REL_18_6 \u00b7 doc/src/sgml/ref/alter_subscription.sgml:319-323"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/logical-replication.sgml#L2039-L2043", "label": "REL_18_6 \u00b7 doc/src/sgml/logical-replication.sgml:2039-2043"}]}, {"anchor": "F12", "url": "https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F12", "claim": "It arrived in PostgreSQL 16 along with streaming = parallel\u2026", "title": "PostgreSQL 16 introduced parallel apply and its worker limit", "explanation": "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.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/c372fbbd8e911f2412b80a8c39d7079366565d67/doc/src/sgml/release-16.sgml#L1736-L1756", "label": "REL_16_0 \u00b7 doc/src/sgml/release-16.sgml:1736-1756"}]}, {"anchor": "F13", "url": "https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F13", "claim": "PostgreSQL 18 made it the default for CREATE SUBSCRIPTION\u2026", "title": "PostgreSQL 18 changed the subscription streaming default to parallel", "explanation": "PostgreSQL 18 changed CREATE SUBSCRIPTION's streaming default from off to parallel. See doc/src/sgml/release-18.sgml:10426-10427.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/release-18.sgml#L10419-L10438", "label": "REL_18_6 \u00b7 doc/src/sgml/release-18.sgml:10419-10438"}]}, {"anchor": "F14", "url": "https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F14", "claim": "\u2026pg_dump in 18 writes streaming = off explicitly\u2026", "title": "pg_dump explicitly preserves an existing streaming=off setting", "explanation": "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.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/bin/pg_dump/pg_dump.c#L5370-L5394", "label": "REL_18_6 \u00b7 src/bin/pg_dump/pg_dump.c:5370-5394"}]}, {"anchor": "F15", "url": "https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F15", "claim": "\u2026changes go to a parallel apply worker \u201cif available,\u201d\u2026", "title": "The documentation qualifies parallel application by worker availability", "explanation": "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.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/create_subscription.sgml#L260-L289", "label": "REL_18_6 \u00b7 doc/src/sgml/ref/create_subscription.sgml:260-289"}]}, {"anchor": "F17", "url": "https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F17", "claim": "The publisher has to be 16 or later.", "title": "Parallel apply requires a PostgreSQL 16 or later publisher", "explanation": "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.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/worker.c#L4470-L4494", "label": "REL_18_6 \u00b7 src/backend/replication/logical/worker.c:4470-4494"}]}, {"anchor": "F18", "url": "https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F18", "claim": "\u2026a pending ALTER SUBSCRIPTION ... SKIP turns parallel apply off\u2026", "title": "A pending skip LSN prevents parallel-worker assignment", "explanation": "pa_can_start returns false when the subscription has a valid skip LSN. See src/backend/replication/logical/applyparallelworker.c:302-303.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/applyparallelworker.c#L260-L315", "label": "REL_18_6 \u00b7 src/backend/replication/logical/applyparallelworker.c:260-315"}]}, {"anchor": "F19", "url": "https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F19", "claim": "\u2026commit order holds there too\u2026", "title": "Parallel apply preserves commit ordering", "explanation": "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.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/applyparallelworker.c#L1-L110", "label": "REL_18_6 \u00b7 src/backend/replication/logical/applyparallelworker.c:1-110"}]}, {"anchor": "F20", "url": "https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F20", "claim": "\u2026range 0 to 1024\u2026", "title": "The accepted range is 0\u20131024 workers", "explanation": "guc_tables.c:3385 sets the lower bound to 0. bgworker_internals.h:24 defines the upper bound as 1024.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/misc/guc_tables.c#L3376-L3388", "label": "REL_18_6 \u00b7 src/backend/utils/misc/guc_tables.c:3376-3388"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/include/postmaster/bgworker_internals.h#L24-L24", "label": "REL_18_6 \u00b7 src/include/postmaster/bgworker_internals.h:24-24"}]}, {"anchor": "F21", "url": "https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F21", "claim": "\u2026Three conditions send every streamed transaction to a file no matter what this is set to\u2026", "explanation": "worker.c:4476\u20134491 enables parallel mode only with publisher version 16 or later. applyparallelworker.c:302\u2013313 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.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/applyparallelworker.c#L260-L318", "label": "REL_18_6 \u00b7 src/backend/replication/logical/applyparallelworker.c:260-318"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/applyparallelworker.c#L260-L318", "label": "REL_18_6 \u00b7 src/backend/replication/logical/applyparallelworker.c:260-318"}, {"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/worker.c#L4445-L4495", "label": "REL_18_6 \u00b7 src/backend/replication/logical/worker.c:4445-4495"}]}, {"anchor": "F22", "url": "https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F22", "claim": "\u2026all 133MB of it\u2026", "title": "The displayed file size rounds to 133 MB", "explanation": "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.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L8218-L8240", "label": "REL_18_6 \u00b7 doc/src/sgml/config.sgml:8218-8240"}]}, {"anchor": "F23", "url": "https://pgtrue.postgres.ai/shared/brief/09e52a93-c3a5-4d0c-9ccb-404c4cd92585#F23", "claim": "\u2026a new 16MB shared memory queue\u2026", "title": "The parallel apply data queue is 16 MiB", "explanation": "applyparallelworker.c:187 defines DSM_QUEUE_SIZE as 16 \u00d7 1024 \u00d7 1024 bytes, or 16 MiB.", "verdict": "Accurate", "sources": [{"url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/applyparallelworker.c#L187-L187", "label": "REL_18_6 \u00b7 src/backend/replication/logical/applyparallelworker.c:187-187"}]}]}