Modernize and optimize pg_buffercache_pages() Refactor pg_buffercache_pages() to use SFRM_Materialize mode and construct a tuplestore directly. That's simpler and more efficient than collecting all the data to a custom array first.
Author: Ashutosh Bapat <[email protected]> Author: Palak Chaturvedi <[email protected]> Discussion: https://www.postgresql.org/message-id/CAExHW5sMsaz1j+hrdhyo-DJp7JCgJx87=q2ijfoc_9mwywy...@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/257c8231bf97a77378f6fedb826b1243f0a41612 Modified Files -------------- contrib/pg_buffercache/pg_buffercache_pages.c | 244 ++++++++------------------ 1 file changed, 77 insertions(+), 167 deletions(-)
