mirror of
https://github.com/postgres/postgres.git
synced 2025-11-04 20:11:56 +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:
@@ -204,7 +204,7 @@ main(int argc, char **argv)
|
||||
"AND holder.granted "
|
||||
"AND holder.pid <> $1 AND holder.pid IN (");
|
||||
/* The spec syntax requires at least one session; assume that here. */
|
||||
appendPQExpBuffer(&wait_query, "%s", backend_pids[1]);
|
||||
appendPQExpBufferStr(&wait_query, backend_pids[1]);
|
||||
for (i = 2; i < nconns; i++)
|
||||
appendPQExpBuffer(&wait_query, ", %s", backend_pids[i]);
|
||||
appendPQExpBufferStr(&wait_query,
|
||||
|
||||
Reference in New Issue
Block a user