postgresql/src
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
..
backend Use stack allocated StringInfoDatas, where possible 2025-11-06 14:59:48 +13:00
bin psql: Add tab completion for COPY ... PROGRAM. 2025-11-04 10:51:39 -08:00
common Use C11 char16_t and char32_t for Unicode code points. 2025-10-29 14:17:13 -07:00
fe_utils Add \pset options for boolean value display 2025-11-03 17:40:39 +01:00
include Implement WAIT FOR command 2025-11-05 11:44:13 +02:00
interfaces libpq: Improve error handling in passwordFromFile() 2025-11-04 20:12:48 +09:00
makefiles Remove traces of support for Sun Studio compiler 2025-09-12 07:39:05 +02:00
pl Avoid memory leak in validation of a PL/Python trigger function. 2025-10-23 14:23:26 -04:00
port Fix POSIX compliance in pgwin32_unsetenv() for "name" argument 2025-10-21 08:05:28 +09:00
template Remove traces of support for Sun Studio compiler 2025-09-12 07:39:05 +02:00
test Implement WAIT FOR command 2025-11-05 11:44:13 +02:00
timezone Generate GUC tables from .dat file 2025-09-03 09:45:17 +02:00
tools Implement WAIT FOR command 2025-11-05 11:44:13 +02:00
tutorial Fix compile of src/tutorial/funcs.c 2025-10-07 10:45:57 +02:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in Remove traces of support for Sun Studio compiler 2025-09-12 07:39:05 +02:00
Makefile.shlib Use exported symbols list on macOS for loadable modules as well 2025-06-10 07:04:43 +02:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00
nls-global.mk Fix update-po for the PGXS case 2025-10-16 20:21:05 +02:00