[Info-vax] CLI parsing routines suggestion, was: Re: InnoDB memory issue in MariaDB

Arne Vajhøj arne at vajhoej.dk
Fri Oct 9 15:32:36 EDT 2020


On 10/9/2020 2:03 PM, Simon Clubley wrote:
> On 2020-10-09, Arne Vajhøj <arne at vajhoej.dk> wrote:
>> I used:
>>
>> mod mysql$server
>> /fil=1000/bio=1000/dio=1000/ast=2500/enq=5000/byt=200000/pgfl=2000000
>>
>> with 5.5.68 on Alpha.

> I wonder if VSI should consider adding an optional thousands character
> to numeric keyword values (ie: those keyword values defined as $NUMBER)
> which could be silently stripped by the CLI parsing routines so the
> value seen by programs is unchanged ?
> 
> The parsing routines could also issue a warning if the characters are
> used in a $NUMBER value but are not placed at the expected points as
> that could help catch when people type too few or too many digits for
> a value.
> 
> It would make commands like the above more readable and less prone to
> typing or reading errors.
> 
> For example:
> 
> mod mysql$server
> /fil=1000/bio=1000/dio=1000/ast=2500/enq=5000/byt=200_000/pgfl=2_000_000
> 
> This would be fully backwards compatible with existing behaviour and
> it would be up to the user whether they used a thousands character or not.

That, or K and M suffixes.

/byt=200K/pgfl=2M

Arne



More information about the Info-vax mailing list