pgsql: Replace formatting.c's fixed-size output buffers with StringInfo
Started by Tom Lane3 months ago1 messagescommitters
Stepping through
Replace formatting.c's fixed-size output buffers with StringInfos.
In both versions of NUM_processor(), use a StringInfo for the
output string, eliminating the need to guess an upper bound
for the output length, and removing the need to truncate some
strings of unpredictable length.
Author: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>
Discussion: /messages/by-id/3451175.1786641871@sss.pgh.pa.us
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/ec352b37d88a12f0256526ff0a51bd86d587d604
Modified Files
--------------
src/backend/utils/adt/formatting.c | 310 +++++++++++++++----------------------
1 file changed, 127 insertions(+), 183 deletions(-)