[COMMITTERS] pgsql: Reduce the number of pallocs() in BRIN

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема [COMMITTERS] pgsql: Reduce the number of pallocs() in BRIN
Дата
Msg-id E1cwc48-0004mI-Nj@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Reduce the number of pallocs() in BRIN

Instead of allocating memory in brin_deform_tuple and brin_copy_tuple
over and over during a scan, allow reuse of previously allocated memory.
This is said to make for a measurable performance improvement.

Author: Jinyu Zhang, Álvaro Herrera
Reviewed by: Tomas Vondra
Discussion: https://postgr.es/m/495deb78.4186.1500dacaa63.Coremail.beijing_pg@163.com

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/8bf74967dab1b368f4e217c960ede1516c42a989

Modified Files
--------------
contrib/pageinspect/brinfuncs.c        |  3 +-
src/backend/access/brin/brin.c         | 24 +++++++----
src/backend/access/brin/brin_pageops.c |  4 +-
src/backend/access/brin/brin_tuple.c   | 77 +++++++++++++++++++++-------------
src/include/access/brin_tuple.h        | 12 ++++--
5 files changed, 78 insertions(+), 42 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: [COMMITTERS] pgsql: Improve 64bit atomics support.
Следующее
От: Alvaro Herrera
Дата:
Сообщение: [COMMITTERS] pgsql: Fix printf format to use %zd when printing sizes