Replace pg_asprintf() with psprintf().
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/oid2name/oid2name.c | modified | +1 −1 |
| contrib/pg_upgrade/check.c | modified | +3 −5 |
| contrib/pg_upgrade/tablespace.c | modified | +3 −2 |
| contrib/pg_upgrade/util.c | modified | +1 −1 |
| src/backend/utils/adt/format_type.c | modified | +3 −26 |
| src/bin/initdb/initdb.c | modified | +7 −7 |
| src/bin/pg_ctl/pg_ctl.c | modified | +3 −3 |
| src/bin/pg_dump/compress_io.c | modified | +2 −2 |
| src/bin/pg_dump/pg_dump.c | modified | +2 −2 |
| src/bin/psql/command.c | modified | +8 −8 |
| src/bin/psql/common.c | modified | +2 −2 |
| src/bin/psql/copy.c | modified | +1 −1 |
| src/bin/psql/input.c | modified | +1 −1 |
| src/bin/psql/startup.c | modified | +4 −4 |
| src/bin/psql/tab-complete.c | modified | +1 −4 |
| src/common/psprintf.c | modified | +0 −38 |
| src/include/common/fe_memutils.h | modified | +0 −1 |
| src/test/isolation/isolationtester.c | modified | +2 −2 |
| src/test/regress/pg_regress.c | modified | +13 −15 |