RE: [PATCH] pgbench: improve \sleep meta command
Hayato Kuroda (Fujitsu) <kuroda.hayato@fujitsu.com>
From: "kuroda.hayato@fujitsu.com" <kuroda.hayato@fujitsu.com>
To: 'Fujii Masao' <masao.fujii@oss.nttdata.com>, 'miyake_kouta' <miyake_kouta@oss.nttdata.com>
Cc: Pgsql Hackers <pgsql-hackers@postgresql.org>
Date: 2021-03-08T07:33:05Z
Lists: pgsql-hackers
Dear Fujii-san, Miyake-san > Isn't it better to accept even negative sleep time like currently pgbench does? > Otherwise we always need to check the variable is a positive integer > (for example, using \if command) when using it as the sleep time in \sleep > command. That seems inconvenient. Both of them are acceptable for me. But we should write down how it works when the negative value is input if we adopt. Best Regards, Hayato Kuroda FUJITSU LIMITED
Commits
-
pgbench: Improve error-handling in \sleep command.
- 8c6eda2d1c92 14.0 landed