Hi, On 2023-02-21 11:22:26 -0800, Andres Freund wrote: > On 2023-02-21 18:18:02 +0200, Heikki Linnakangas wrote: > > Do other ReadBufferModes than RBM_ZERO_AND_LOCK make sense with > > ExtendRelationBuffered? > > Hm. That's a a good point. Probably not. Perhaps it could be useful to support > RBM_NORMAL as well? But even if, it'd just be a lock release away if we always > used RBM_ZERO_AND_LOCK.
There's a fair number of callers using RBM_NORMAL, via ReadBuffer[Extended]() right now. While some of them are trivial to convert, others aren't (e.g., brin_getinsertbuffer()). So I'm inclined to continue allowing RBM_NORMAL. Greetings, Andres Freund