Re: pgbench failed when -f option contains a char '@'

Fabien COELHO <coelho@cri.ensmp.fr>

From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>, "Wang, Shenhao" <wangsh.fnst@cn.fujitsu.com>, "pgsql-hackers@lists.postgresql.org" <pgsql-hackers@lists.postgresql.org>
Date: 2020-12-20T13:43:01Z
Lists: pgsql-hackers

Attachments

Hello Tom,

>> I think we should just leave this as it is. The user can simply rename
>> the file.
>
> Yeah.  The assumption when we defined the script-weight syntax was that
> there's no particular reason to use "@" in a script file name, and
> I don't see why that's a bad assumption.

The "parser" looks for the last @ in the argument, so the simple 
workaround is to append "@1".

I suggest the attached doc update, or anything in better English.

-- 
Fabien.

Commits

  1. Doc: improve description of pgbench script weights.