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
bufmgr: Support multiple in-progress IOs by using resowner
A future patch will add support for extending relations by multiple blocks atonce. To be concurrency safe, the buffers for those blocks need to be markedas BM_IO_IN_PROGRESS. Until now we only had infrastructure for recovering froman IO error for a single buffer. This commit extends that infrastructure tomultiple buffers by using the resource owner infrastructure.This commit increases the size of the ResourceOwnerData struct, which appearsto have a just about measurable overhead in very extreme workloads. Mediumterm we are planning to substantially shrink the size ofResourceOwnerData. Short term the increase is small enough to not worry aboutit for now.Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>Discussion:https://postgr.es/m/20221029025420.eplyow6k7tgu6he3@awork3.anarazel.deDiscussion:https://postgr.es/m/20221029200025.w7bvlgvamjfo6z44@awork3.anarazel.de