Dec 2024

4 commits
Replace PGPROC.isBackgroundWorker with isRegularBackend.
28 Dec 2024Tom Lanemaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% surewritten from the discussion, no matching patch

Implements the rename and boolean inversion explicitly proposed but excluded from the attachment in #4. The changes replace isBackgroundWorker with isRegularBackend in proc.h, proc.c, procarray.c and twophase.c.

Exclude parallel workers from connection privilege/limit checks.
28 Dec 2024Tom Lanemaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1REL_17_STABLE17.3REL_16_STABLE16.7REL_15_STABLE15.11REL_14_STABLE14.16REL_13_STABLE13.19
LLM analysis, 99% suremodified before commitmoderate changesfrom patchset #4

Preserves the connection-check policy and regular-backend accounting of #4, with adaptations to older APIs. It additionally makes InitializeSessionUserId return immediately for parallel workers and replaces CheckMyDatabase's autovacuum exception with an explicit connection override from AutoVacWorkerMain.

Reserve a PGPROC slot and semaphore for the slotsync worker process.
28 Dec 2024Tom Lanemaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1REL_17_STABLE17.3
LLM analysis, 98% surelanded as postedfrom patchset #31 of 1 reviewer saw the final version

Matches the special-worker allocation implementation in #3, with branch-context differences and omission of an error-detail adjustment where the target already uses an internal error. The commit credits Tom Lane and Hou Zhijie, whose original patch is #2.

  • Tom Lanesaw the final versioncommittercommitted the patch
Try to avoid semaphore-related test failures on NetBSD/OpenBSD.
28 Dec 2024Tom LaneREL_17_STABLE17.3Also in: Regression tests fail on OpenBSD due to low semmns value (written from the discussion, no matching patch)
LLM analysis, 98% surewritten from the discussion, no matching patch

No attachment changes sysv_sema.c, initdb.c or the semaphore documentation. The commit explicitly explains that this existing fix was backpatched to v17 because the slotsync reservation developed in #3 would otherwise prevent startup under default NetBSD/OpenBSD semaphore limits.

Credits across 4 commits

Author
Tom LaneLLM1
Zhijie Hou (Fujitsu)LLM1
Reviewer
Tom Lanecommitter1
Committer
Tom Lane4

N LLM means N of the credits come from LLM analysis, not from commit trailers.