diff options
author | David Rowley <drowley@postgresql.org> | 2019-07-04 13:01:13 +1200 |
---|---|---|
committer | David Rowley <drowley@postgresql.org> | 2019-07-04 13:01:13 +1200 |
commit | 8abc13a88938ef473b8a486186f1b96630450728 (patch) | |
tree | 111864d4f940154a6fd64fd50bc528d396ccde30 /src/backend/commands/explain.c | |
parent | 5683b34956b4e8da9dccadc2e3a53b86104ebb33 (diff) | |
download | postgresql-8abc13a88938ef473b8a486186f1b96630450728.tar.gz postgresql-8abc13a88938ef473b8a486186f1b96630450728.zip |
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
Diffstat (limited to 'src/backend/commands/explain.c')
-rw-r--r-- | src/backend/commands/explain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/explain.c b/src/backend/commands/explain.c index 92969636b75..dff2ed3f978 100644 --- a/src/backend/commands/explain.c +++ b/src/backend/commands/explain.c @@ -822,7 +822,7 @@ ExplainPrintJIT(ExplainState *es, int jit_flags, if (for_workers) appendStringInfo(es->str, "JIT for worker %u:\n", worker_num); else - appendStringInfo(es->str, "JIT:\n"); + appendStringInfoString(es->str, "JIT:\n"); es->indent += 1; ExplainPropertyInteger("Functions", NULL, ji->created_functions, es); |