Add missing initialization
Álvaro Herrera <alvherre@kurilemu.de>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/repack.c | modified | +1 −0 |
| src/backend/commands/repack_worker.c | modified | +5 −2 |
| src/include/commands/repack_internal.h | modified | +0 −1 |
Discussion
- Adding REPACK [concurrently] 409 messages · 2025-07-26 → 2026-07-01