postgresql/src/backend/storage
Andres Freund 12f3867f55 bufmgr: Support multiple in-progress IOs by using resowner
A future patch will add support for extending relations by multiple blocks at
once. To be concurrency safe, the buffers for those blocks need to be marked
as BM_IO_IN_PROGRESS. Until now we only had infrastructure for recovering from
an IO error for a single buffer. This commit extends that infrastructure to
multiple buffers by using the resource owner infrastructure.

This commit increases the size of the ResourceOwnerData struct, which appears
to have a just about measurable overhead in very extreme workloads. Medium
term we are planning to substantially shrink the size of
ResourceOwnerData. Short term the increase is small enough to not worry about
it for now.

Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>
Discussion: https://postgr.es/m/20221029025420.eplyow6k7tgu6he3@awork3.anarazel.de
Discussion: https://postgr.es/m/20221029200025.w7bvlgvamjfo6z44@awork3.anarazel.de
2023-04-05 14:17:55 -07:00
..
buffer bufmgr: Support multiple in-progress IOs by using resowner 2023-04-05 14:17:55 -07:00
file Add smgrzeroextend(), FileZero(), FileFallocate() 2023-04-05 10:06:39 -07:00
freespace Don't initialize page in {vm,fsm}_extend(), not needed 2023-04-05 08:19:39 -07:00
ipc Fix incorrect format placeholders 2023-03-30 08:33:43 +02:00
large_object Update copyright for 2023 2023-01-02 15:00:37 -05:00
lmgr Fix race in SERIALIZABLE READ ONLY. 2023-03-09 16:33:24 +13:00
page Update copyright for 2023 2023-01-02 15:00:37 -05:00
smgr Add smgrzeroextend(), FileZero(), FileFallocate() 2023-04-05 10:06:39 -07:00
sync Remove useless casts to (void *) in hash_search() calls 2023-02-06 09:41:01 +01:00
Makefile Refactor the fsync queue for wider use. 2019-04-04 23:38:38 +13:00
meson.build Update copyright for 2023 2023-01-02 15:00:37 -05:00