From b4fe8e5fd487c6f5517c80e10a4f64702dc53586 Mon Sep 17 00:00:00 2001 From: Rikard Bartholf Date: Mon, 17 Nov 2025 16:17:56 +0100 Subject: [PATCH] Set JOBS property to number of cores as default --- bin/pwdb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/pwdb b/bin/pwdb index d80157e..35cb5a0 100755 --- a/bin/pwdb +++ b/bin/pwdb @@ -38,6 +38,9 @@ EOF exit ${1:-0} } +# Let -i option default to number of CPU cores, use the output of nproc for this. +JOBS=$(nproc) + db_exec() { echo "psql -h $TARGET -xU root -d ${2:-postgres} -c \"$1\""