You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
The parallel GIN builds perform "freezing" of TID lists when mergingchunks built earlier. This means determining what part of the list canno longer change, depending on the last received chunk. The frozen partcan be evicted from memory and written out.The code attempted to freeze items right before merging the old and newTID list, after already attempting to trim the current buffer. Thatmeans part of the data may get frozen based on the new TID list, butwill be trimmed later (on next loop). This increases memory usage.This inverts the order, so that we freeze data first (before trimming).The benefits are likely relatively small, but it's also virtually freewith no other downsides.Discussion:https://postgr.es/m/CAHLJuCWDwn-PE2BMZE4Kux7x5wWt_6RoWtA0mUQffEDLeZ6sfA@mail.gmail.com