git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ffa8c3d)
pgbench: Increase maximum size of log filename from 64 to MAXPGPATH.
2016年11月15日 14:11:51 +0000 (09:11 -0500)
2016年11月15日 14:11:51 +0000 (09:11 -0500)
Commit 41124a91e61fc6d9681c1e8b15ba30494e84d643 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.


diff --git a/src/bin/pgbench/pgbench.c b/src/bin/pgbench/pgbench.c
index a7fdd8ac940b01f028d7213e3e8630ce5986a572..fbb0c2bda45a27f289d3a54f88b7bd1ca937dec9 100644 (file)
--- a/src/bin/pgbench/pgbench.c
+++ b/src/bin/pgbench/pgbench.c
@@ -4401,7 +4401,7 @@ threadRun(void *arg)
/* open log file if requested */
if (use_log)
{
- char logpath[64];
+ char logpath[MAXPGPATH];
char *prefix = logfile_prefix ? logfile_prefix : "pgbench_log";
if (thread->tid == 0)
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /