]> granicus.if.org Git - postgresql/commit
Use one stringbuffer for all rows printed in printtup.c.
authorAndres Freund <andres@anarazel.de>
Wed, 11 Oct 2017 23:26:35 +0000 (16:26 -0700)
committerAndres Freund <andres@anarazel.de>
Wed, 11 Oct 2017 23:26:35 +0000 (16:26 -0700)
commitf2dec34e19d3969ddd616e671fe9a7b968bec812
tree677dfe57e10662138334e5b251b8e7cfb220abd7
parent1de09ad8eb1fa673ee7899d6dfbb2b49ba204818
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
src/backend/access/common/printtup.c