pgbench: Restore compatibility of --partitions=0
authorMichael Paquier <michael@paquier.xyz>
Wed, 18 May 2022 00:47:38 +0000 (09:47 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 18 May 2022 00:47:38 +0000 (09:47 +0900)
commit27f1366050c6cd8c1ea5f03b367a5a167ebf34b7
treec8ec951e223674f7d235d1ae7c7b0eca4478cba4
parentbbf7c2d9e932db873469cd9cecf0e05e39c1962d
pgbench: Restore compatibility of --partitions=0

A value of 0 is allowed for this option since its creation, that would
map with the default of having no partitions for pgbench_accounts, but
6f164e6 broke that by enforcing an error.  This commit restores the
original behavior.

Author: Amit Langote
Discussion: http://postgr.es/m/CA+HiwqGAGobiiHR8nH382HJxqm1mzZs8=3oKPXnXivWoFSZmNA@mail.gmail.com
src/bin/pgbench/pgbench.c