| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Replace formatting.c's fixed-size output buffers with StringInfo |
| Date: | 2026-08-20 17:01:34 |
| Message-ID: | E1wx68z-00000001NzS-3KdF@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(at)sss(dot)pgh(dot)pa(dot)us>
Reviewed-by: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
Discussion: https://postgr.es/m/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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruce Momjian | 2026-08-20 19:33:18 | pgsql: doc: change "allowed in->on the standby server." |
| Previous Message | Jeff Davis | 2026-08-20 16:41:25 | pgsql: Ensure all pg_locale.h APIs work with collate_is_c. |