pgsql: Replace pg_asprintf() with psprintf(). - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Replace pg_asprintf() with psprintf().
Date
Msg-id E1VYlYz-0003CZ-SG@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Get rid of use of asprintf() in favor of a more portable impleme
Next
From: Tom Lane
Date:
Subject: pgsql: Suppress a couple of compiler warnings seen with older gcc versi