From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Replace pg_asprintf() with psprintf(). |
Date: | 2013-10-22 23:40:37 |
Message-ID: | E1VYlYz-0003CZ-SG@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Replace pg_asprintf() with psprintf().
This eliminates an awkward coding pattern that's also unnecessarily
inconsistent with backend coding. psprintf() is now the thing to
use everywhere.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/2c66f9924c1162bfba27c77004ccf42fb6ea188d
Modified Files
--------------
contrib/oid2name/oid2name.c | 2 +-
contrib/pg_upgrade/check.c | 8 +++----
contrib/pg_upgrade/tablespace.c | 5 +++--
contrib/pg_upgrade/util.c | 2 +-
src/backend/utils/adt/format_type.c | 29 +++-----------------------
src/bin/initdb/initdb.c | 14 ++++++-------
src/bin/pg_ctl/pg_ctl.c | 6 +++---
src/bin/pg_dump/compress_io.c | 4 ++--
src/bin/pg_dump/pg_dump.c | 4 ++--
src/bin/psql/command.c | 16 +++++++-------
src/bin/psql/common.c | 4 ++--
src/bin/psql/copy.c | 2 +-
src/bin/psql/input.c | 2 +-
src/bin/psql/startup.c | 8 +++----
src/bin/psql/tab-complete.c | 5 +----
src/common/psprintf.c | 38 ----------------------------------
src/include/common/fe_memutils.h | 1 -
src/test/isolation/isolationtester.c | 4 ++--
src/test/regress/pg_regress.c | 28 ++++++++++++-------------
19 files changed, 57 insertions(+), 125 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2013-10-23 01:32:06 | pgsql: Suppress a couple of compiler warnings seen with older gcc versi |
Previous Message | Tom Lane | 2013-10-22 22:42:31 | pgsql: Get rid of use of asprintf() in favor of a more portable impleme |