On 2026-Apr-16, Chao Li wrote: > The file header comment in repack.c briefly explains the workflow of > concurrent mode as: > > 1. Lock the table with ShareUpdateExclusiveLock > 2. Do an initial copy as non-concurrent mode > 3. While the initial copy is going on, accumulates concurrent changes to a > file > 4. After the initial copy, read the file and re-apply the changes > 5. Upgrade to AccessExclusiveLock and swap the relfilenodes > > When I read the comment, I got confused at step 4. While that re-apply > pass is running, concurrent changes can still occur, so what happens > to those changes?
Somebody independently mentioned this a few days ago, so I have pushed this patch, thanks. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/
