From: | David Rowley <drowley(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Tidy-up some appendStringInfo*() usages |
Date: | 2023-10-03 04:10:15 |
Message-ID: | E1qnWjf-007EPl-VY@gemulon.postgresql.org |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Tidy-up some appendStringInfo*() usages
Make a few newish calls to appendStringInfo() which have no special
formatting use appendStringInfoString() instead. Also, adjust usages of
appendStringInfoString() which only append a string containing a single
character to make use of appendStringInfoChar() instead.
This makes the code marginally faster, but primarily this change is so
we use the StringInfo type as it was intended to be used.
Discussion: https://postgr.es/m/CAApHDvpXKQmL+r=VDNS98upqhr9yGBhv2Jw3GBFFk_wKHcB39A@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/2075ba9dc9af8833b1147996c15246e44a1e4fab
Modified Files
--------------
src/backend/access/rmgrdesc/heapdesc.c | 6 +++---
src/backend/access/rmgrdesc/nbtdesc.c | 2 +-
src/backend/access/rmgrdesc/rmgrdesc_utils.c | 2 +-
src/backend/access/transam/xlogbackup.c | 2 +-
src/backend/replication/slot.c | 2 +-
src/backend/utils/adt/ruleutils.c | 4 ++--
src/test/regress/pg_regress.c | 4 ++--
7 files changed, 11 insertions(+), 11 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2023-10-03 06:35:01 | pgsql: Fix incorrect format placeholder |
Previous Message | Michael Paquier | 2023-10-03 01:26:35 | pgsql: Fail hard on out-of-memory failures in xlogreader.c |