Hi,

> There are some changes in ReadBuffer logic if to compare with pg15. To define 
> which buffers to use, ReadBuffer used SmgrIsTemp function in pg15. The 
> decision was based on backend id of the relation. In pg16 the decision is 
> based on relpersistence attribute, that caused some problems on my side. My 
> opinion, we should choose local buffers based on backend ids of relations, 
> not on its persistence. Additional check for relpersistence prior to backend 
> id may improve the performance in some cases, I think. The internal design 
> may become more flexible as a result.

Well even assuming this patch will make it to the upstream some day,
which I seriously doubt, it will take somewhere between 2 and 5 years.
Personally I would recommend reconsidering this design.

-- 
Best regards,
Aleksander Alekseev


Reply via email to