Please find attached patch that adds CHECK_FOR_INTERRUPTS while scanningthe buffers in pg_buffercache_pages. I checked other functions in themodule and this check already exists in pg_buffercache_numa_pages.
Thanks,Satya