]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Add missing initialization
authorÁlvaro Herrera <alvherre@kurilemu.de>
Thu, 16 Apr 2026 20:27:04 +0000 (22:27 +0200)
committerÁlvaro Herrera <alvherre@kurilemu.de>
Thu, 16 Apr 2026 20:27:04 +0000 (22:27 +0200)
commit05c401d5786a05ea630e884ffa492aa01683d15b
tree65aecb8fb3c7d8e09248b4b9d83bc80f63881ac5
parent191a037d4f2d0a028c19e9ca29da72bc79d2236e
Add missing initialization

The backend running REPACK can check DecodingWorkerShared->initialized
before the worker could have the chance to initialize it, possibly
leading to wrong behavior.

While at it, remove DecodingWorkerShared->worker_dsm_segment, because
that doesn't actually need to be in shared memory; a simple local-memory
global variable is enough.

Oversights in commit 28d534e2ae0a.

Author: Antonin Houska <ah@cybertec.at>
Reported-by: Alexander Lakhin <exclusion@gmail.com>
Discussion: https://postgr.es/m/18181295-8375-4789-ad32-269d78d6001e@gmail.com
src/backend/commands/repack.c
src/backend/commands/repack_worker.c
src/include/commands/repack_internal.h