pgbench failed when -f option contains a char '@'
Wang, Shenhao <wangsh.fnst@cn.fujitsu.com>
From: "Wang, Shenhao" <wangsh.fnst@cn.fujitsu.com>
To: "pgsql-hackers@lists.postgresql.org" <pgsql-hackers@lists.postgresql.org>
Date: 2020-12-18T06:22:36Z
Lists: pgsql-hackers
Attachments
- 0001-Improve-pgbench-when-f-option-contain-char-in-filepa.patch (application/octet-stream) patch 0001
Hi, hackers pgbench use -f filename[@weight] to receive a sql script file with a weight, but if I create a file contains char'@', like a@2.sql, specify this file without weigth, pgbench will failed with error: pgbench: fatal: invalid weight specification: @2.sql This action may be unfriendly, because the char '@' is a valid character on Linux and Windows. I have created a patch to modify this action. The patch is attached. Thoughts? Regards Shenhao Wang
Commits
-
Doc: improve description of pgbench script weights.
- fafc6f716ade 10.16 landed
- c7a0b94c4528 9.6.21 landed
- 3989fdab48d9 12.6 landed
- 22d1569af95d 13.2 landed
- 1990ce186ee6 14.0 landed
- 14c6afbbb308 11.11 landed