]> granicus.if.org Git - postgresql/commit
Use appendStringInfoString and appendPQExpBufferStr where possible
authorDavid Rowley <drowley@postgresql.org>
Thu, 4 Jul 2019 01:01:13 +0000 (13:01 +1200)
committerDavid Rowley <drowley@postgresql.org>
Thu, 4 Jul 2019 01:01:13 +0000 (13:01 +1200)
commit8abc13a88938ef473b8a486186f1b96630450728
tree111864d4f940154a6fd64fd50bc528d396ccde30
parent5683b34956b4e8da9dccadc2e3a53b86104ebb33
Use appendStringInfoString and appendPQExpBufferStr where possible

This changes various places where appendPQExpBuffer was used in places
where it was possible to use appendPQExpBufferStr, and likewise for
appendStringInfo and appendStringInfoString.  This is really just a
stylistic improvement, but there are also small performance gains to be
had from doing this.

Discussion: http://postgr.es/m/CAKJS1f9P=M-3ULmPvr8iCno8yvfDViHibJjpriHU8+SXUgeZ=w@mail.gmail.com
25 files changed:
contrib/postgres_fdw/deparse.c
contrib/sepgsql/database.c
contrib/sepgsql/label.c
contrib/sepgsql/selinux.c
contrib/test_decoding/test_decoding.c
src/backend/access/rmgrdesc/heapdesc.c
src/backend/commands/explain.c
src/backend/utils/adt/ruleutils.c
src/bin/pg_basebackup/streamutil.c
src/bin/pg_ctl/pg_ctl.c
src/bin/pg_dump/dumputils.c
src/bin/pg_dump/pg_backup_archiver.c
src/bin/pg_dump/pg_backup_db.c
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dumpall.c
src/bin/pg_upgrade/dump.c
src/bin/psql/command.c
src/bin/psql/describe.c
src/bin/scripts/clusterdb.c
src/bin/scripts/reindexdb.c
src/bin/scripts/vacuumdb.c
src/fe_utils/string_utils.c
src/interfaces/libpq/fe-auth-scram.c
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-protocol3.c