Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit11f3669

Browse files
committed
pgbench: Move constant into format string
As coded, the row data strings generated for pgbench_accounts' COPY inthe client-side data generation were always assigning 0 for one of itsattributes. This simplifies a bit an upcoming patch to switchclient-side data generation of pgbench to use COPY for the teller andbranch tables, rather than individual INSERTs.Author: Tristan PartinDiscussion:https://postgr.es/m/CSTU5P82ONZ1.19XFUGHMXHBRY@c3po
1 parent46ebdfe commit11f3669

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)

[8]ページ先頭

©2009-2025 Movatter.jp