pgbench failed when -f option contains a char '@' - Mailing list pgsql-hackers

From Wang, Shenhao
Subject pgbench failed when -f option contains a char '@'
Date
Msg-id 1c4e81550d214741827a03292222db8d@G08CNEXMBPEKD06.g08.fujitsu.local
Whole thread Raw
Responses Re: pgbench failed when -f option contains a char '@'
Re: pgbench failed when -f option contains a char '@'
List pgsql-hackers
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



Attachment

pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: [HACKERS] [PATCH] Generic type subscripting
Next
From: Michael Paquier
Date:
Subject: Re: Refactoring HMAC in the core code