| From: | Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Modernize and optimize pg_buffercache_pages() |
| Date: | 2026-04-07 13:06:42 |
| Message-ID: | E1wA68f-003Ofv-3B@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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 <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com>
Author: Palak Chaturvedi <chaturvedipalak1911(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/CAExHW5sMsaz1j+hrdhyo-DJp7JCgJx87=q2iJfOc_9mwYWyvmw@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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andres Freund | 2026-04-07 13:07:48 | Re: pgsql: Use WAIT FOR LSN in PostgreSQL::Test::Cluster::wait_for_catchup( |
| Previous Message | Aleksander Alekseev | 2026-04-07 11:52:09 | Re: pgsql: Allow autovacuum to use parallel vacuum workers. |