pgbench: Restore compatibility of --partitions=0

Michael Paquier <michael@paquier.xyz>

Commit: 27f1366050c6cd8c1ea5f03b367a5a167ebf34b7
Author: Michael Paquier <michael@paquier.xyz>
Date: 2022-05-18T00:47:38Z
Releases: 15.0
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: https://postgr.es/m/CA+HiwqGAGobiiHR8nH382HJxqm1mzZs8=3oKPXnXivWoFSZmNA@mail.gmail.com

Files

PathChange+/−
src/bin/pgbench/pgbench.c modified +1 −1

Discussion