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

Commit56eba9b

Browse files
committed
pgbench: Increase maximum size of log filename from 64 to MAXPGPATH.
Commit41124a9 allowed thetransaction log file prefix to be changed but left in place theexisting 64-character limit on the total length of a log file name.It's possible that could be inconvenient for somebody, so increase thelimit to MAXPGPATH, which ought to be enough for anybody.Per a suggestion from Tom Lane.
1 parentffa8c3d commit56eba9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/bin/pgbench/pgbench.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4401,7 +4401,7 @@ threadRun(void *arg)
44014401
/* open log file if requested */
44024402
if (use_log)
44034403
{
4404-
charlogpath[64];
4404+
charlogpath[MAXPGPATH];
44054405
char*prefix=logfile_prefix ?logfile_prefix :"pgbench_log";
44064406

44074407
if (thread->tid==0)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp