Re: [PATCH] pgbench: improve \sleep meta command - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: [PATCH] pgbench: improve \sleep meta command
Date
Msg-id c215e3da-58dc-8378-dde2-aa3e14a13b7d@oss.nttdata.com
Whole thread Raw
Responses RE: [PATCH] pgbench: improve \sleep meta command  ("kuroda.hayato@fujitsu.com" <kuroda.hayato@fujitsu.com>)
List pgsql-hackers

On 2021/03/17 16:40, kuroda.hayato@fujitsu.com wrote:
> Dear Fujii-san,
> 
> Thank you for updating the patch.

Thanks for the review!


> I understand that you don't want to change the current specification.
> 
> ```diff
> +               if (usec == 0)
> +               {
> +                       char       *c = var;
> +
> +                       /* Skip sign */
> +                       if (*c == '+' || *c == '-')
> +                               c++;
> ```
> 
> In my understanding the skip is not necessary, because
> plus sign is already removed in the executeMetaCommand() and minus value can be returned by atoi().

Yes, you're right. I removed that check from the patch.
Attached is the updated version of the patch.

Regards,

-- 
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION

Attachment

pgsql-hackers by date:

Previous
From: "iwata.aya@fujitsu.com"
Date:
Subject: RE: libpq debug log
Next
From: "tsunakawa.takay@fujitsu.com"
Date:
Subject: RE: libpq debug log