Re: Pgbench with -f and -S - Mailing list pgsql-hackers

From Fabien COELHO
Subject Re: Pgbench with -f and -S
Date
Msg-id alpine.DEB.2.10.1604180716290.23313@sto
Whole thread Raw
In response to Re: Pgbench with -f and -S  (Robins Tharakan <tharakan@gmail.com>)
Responses Re: Pgbench with -f and -S
List pgsql-hackers
>> For the future 9.6, scripts options are cumulatives, so -f & -S can be
>> combined.
>>
>> Indeed, for the <= 9.5 it seems that some options are silently ignores,
>> when combining -S/-f, only the last one is kept, it should be warned about.
> ​
> ​Thanks Fabien, for confirming about the missing warning.
>
> Also, by 'combined' I think you mean that both (built-in SELECTs & Custom
> Script) run, although the dev docs don't (yet) say anything about that.

Hmmm... I think it does implicitely, with "add" and "and" in the 
following:

From http://www.postgresql.org/docs/devel/static/pgbench.html:
  -b scriptname[@weight]  Add the specified builtin script to the list of executed scripts. [...]

Idem -f.

And later at the beginning of the Notes:
  pgbench executes test scripts chosen randomly from a specified list.  They include built-in scripts with -b and
user-providedcustom scripts with -f.  [...]
 

-- 
Fabien.

pgsql-hackers by date:

Previous
From: Amit Langote
Date:
Subject: Re: Declarative partitioning
Next
From: Michael Paquier
Date:
Subject: Re: Default Roles