Add CHECK_FOR_INTERRUPTS in Evict{Rel,All}UnpinnedBuffers - Mailing list pgsql-hackers

From 邱宇航
Subject Add CHECK_FOR_INTERRUPTS in Evict{Rel,All}UnpinnedBuffers
Date
Msg-id 8DC280D4-94A2-4E7B-BAB9-C345891D0B78@gmail.com
Whole thread Raw
Responses Re: Add CHECK_FOR_INTERRUPTS in Evict{Rel,All}UnpinnedBuffers
List pgsql-hackers
The pg_buffercache_evict_{relation,all} operations can become extremely
slow when dealing with large buffer pools containing many dirty buffers.
This commit adds CHECK_FOR_INTERRUPTS calls within the underlying
Evict{Rel,All}UnpinnedBuffers functions to ensure these operations
cancellable.

And this should be backpatched through v18 where
pg_buffercache_evict_{relation,all} operations are introduced.





Attachment

pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: meson's in-tree libpq header search order vs -Dextra_include_dirs
Next
From: Xuneng Zhou
Date:
Subject: Re: Implement waiting for wal lsn replay: reloaded