diff --git a/check_psqlserver b/check_psqlserver
index aa01d1f3402fa6e1f518d212d8c3eda5a7757f9a..026654bd0a80e2ad873a2787e92b445be36d72cd 100755
--- a/check_psqlserver
+++ b/check_psqlserver
@@ -232,7 +232,11 @@ case "${sMode}" in
         typeset -i iQOther;    iQOther=$iQTotal-$iQActive-$iQIdle-$iQFastpath
 
         descr="Running total: $iQTotal ... active: $iQActive idle: $iQIdle fastpath: $iQFastpath other: $iQOther"
-        out=$( grep "^.[a-z]" <<< "${_out}" | cut -c 1-150 | tr '|' ':' )
+        typeset -i iMax; iMax=20
+        out=$( grep "^.[a-z]" <<< "${_out}" | cut -c 1-150 | tr '|' ':' | head -${iMax} )
+        if [ ${iQTotal} -gt ${iMax} ]; then
+            out+="${NL}(showing ${iMax} of ${iQTotal} lines)${NL}"
+        fi
         ph.perfadd "running-total"     "${iQTotal}"
         ph.perfadd "running-active"    "${iQActive}"
         ph.perfadd "running-idle"      "${iQIdle}"