postgresql/contrib/tcn
David Rowley 6d0eba6627 Use stack allocated StringInfoDatas, where possible
Various places that were using StringInfo but didn't need that
StringInfo to exist beyond the scope of the function were using
makeStringInfo(), which allocates both a StringInfoData and the buffer it
uses as two separate allocations.  It's more efficient for these cases to
use a StringInfoData on the stack and initialize it with initStringInfo(),
which only allocates the string buffer.  This also simplifies the cleanup,
in a few cases.

Author: Mats Kindahl <mats.kindahl@gmail.com>
Reviewed-by: David Rowley <dgrowleyml@gmail.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/4379aac8-26f1-42f2-a356-ff0e886228d3@gmail.com
2025-11-06 14:59:48 +13:00
..
expected Add a regression test for contrib/tcn. 2022-08-01 19:18:50 -04:00
specs Use --load-extension to set up for contrib/tcn's isolation tests. 2022-09-01 14:30:41 -04:00
.gitignore Add a regression test for contrib/tcn. 2022-08-01 19:18:50 -04:00
Makefile Use --load-extension to set up for contrib/tcn's isolation tests. 2022-09-01 14:30:41 -04:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00
tcn--1.0.sql Triggered change notifications. 2012-01-19 23:15:15 -05:00
tcn.c Use stack allocated StringInfoDatas, where possible 2025-11-06 14:59:48 +13:00
tcn.control Mark some contrib modules as "trusted". 2020-02-13 15:02:35 -05:00