Skip to content

Commit 11f3669

Browse files
committed
pgbench: Move constant into format string
As coded, the row data strings generated for pgbench_accounts' COPY in the client-side data generation were always assigning 0 for one of its attributes. This simplifies a bit an upcoming patch to switch client-side data generation of pgbench to use COPY for the teller and branch tables, rather than individual INSERTs. Author: Tristan Partin Discussion: https://postgr.es/m/CSTU5P82ONZ1.19XFUGHMXHBRY@c3po
1 parent 46ebdfe commit 11f3669

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/pgbench/pgbench.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4947,8 +4947,8 @@ initGenerateDataClientSide(PGconn *con)
49474947

49484948
/* "filler" column defaults to blank padded empty string */
49494949
printfPQExpBuffer(&sql,
4950-
INT64_FORMAT "\t" INT64_FORMAT "\t%d\t\n",
4951-
j, k / naccounts + 1, 0);
4950+
INT64_FORMAT "\t" INT64_FORMAT "\t0\t\n",
4951+
j, k / naccounts + 1);
49524952
if (PQputline(con, sql.data))
49534953
pg_fatal("PQputline failed");
49544954

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy