mirror of
https://github.com/postgres/postgres.git
synced 2025-06-23 14:01:44 +03:00
Replace appendPQExpBuffer(..., <constant>) with appendPQExpBufferStr
Arguably makes the code a bit more readable, and might give a small performance gain. David Rowley
This commit is contained in:
@ -362,9 +362,9 @@ do_copy(const char *args)
|
||||
printfPQExpBuffer(&query, "COPY ");
|
||||
appendPQExpBufferStr(&query, options->before_tofrom);
|
||||
if (options->from)
|
||||
appendPQExpBuffer(&query, " FROM STDIN ");
|
||||
appendPQExpBufferStr(&query, " FROM STDIN ");
|
||||
else
|
||||
appendPQExpBuffer(&query, " TO STDOUT ");
|
||||
appendPQExpBufferStr(&query, " TO STDOUT ");
|
||||
if (options->after_tofrom)
|
||||
appendPQExpBufferStr(&query, options->after_tofrom);
|
||||
|
||||
|
Reference in New Issue
Block a user