pgsql: Modernize and optimize pg_buffercache_pages()

Поиск
Список
Период
Сортировка
Искать

pgsql: Modernize and optimize pg_buffercache_pages()

От:
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Дата:
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 
Author: Palak Chaturvedi 
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(-)

FAQ