]> granicus.if.org Git - postgresql/commit
Reduce the number of pallocs() in BRIN
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 7 Apr 2017 21:54:26 +0000 (18:54 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 7 Apr 2017 22:08:43 +0000 (19:08 -0300)
commit8bf74967dab1b368f4e217c960ede1516c42a989
tree61090aa24b2761d6f731b5a56d769cb94961d35b
parente8fdbd58fe564a29977f4331cd26f9697d76fc40
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
contrib/pageinspect/brinfuncs.c
src/backend/access/brin/brin.c
src/backend/access/brin/brin_pageops.c
src/backend/access/brin/brin_tuple.c
src/include/access/brin_tuple.h