Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 56eba9b

Browse files
committed
pgbench: Increase maximum size of log filename from 64 to MAXPGPATH.
Commit 41124a9 allowed the transaction log file prefix to be changed but left in place the existing 64-character limit on the total length of a log file name. It's possible that could be inconvenient for somebody, so increase the limit to MAXPGPATH, which ought to be enough for anybody. Per a suggestion from Tom Lane.
1 parent ffa8c3d commit 56eba9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pgbench/pgbench.c

+1-1
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-
char logpath[64];
4404+
char logpath[MAXPGPATH];
44054405
char *prefix = logfile_prefix ? logfile_prefix : "pgbench_log";
44064406

44074407
if (thread->tid == 0)

0 commit comments

Comments
 (0)