[COMMITTERS] pgsql: Use one stringbuffer for all rows printed in printtup.c. - Mailing list pgsql-committers

From Andres Freund
Subject [COMMITTERS] pgsql: Use one stringbuffer for all rows printed in printtup.c.
Date
Msg-id E1e2QXL-0001d9-2X@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Use one stringbuffer for all rows printed in printtup.c.

This avoids newly allocating, and then possibly growing, the
stringbuffer for every row. For wide rows this can substantially
reduce memory allocator overhead, at the price of not immediately
reducing memory usage after outputting an especially wide row.

Author: Andres Freund
Discussion: https://postgr.es/m/20170914063418.sckdzgjfrsbekae4@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f2dec34e19d3969ddd616e671fe9a7b968bec812

Modified Files
--------------
src/backend/access/common/printtup.c | 46 ++++++++++++++++++++----------------
1 file changed, 25 insertions(+), 21 deletions(-)


--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: [COMMITTERS] pgsql: Add more efficient functions to pqformat API.
Next
From: Robert Haas
Date:
Subject: [COMMITTERS] pgsql: pg_stat_statements: Widen query IDs from 32 bits to 64 bits.