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

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-
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)
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