  if [ -r "${LOG}" ]
  then
      tail "-${LOG_LIMIT}" "${LOG}"
-@@ -198,17 +198,11 @@
+@@ -219,17 +219,11 @@
  
  section "PostgreSQL Log (Last ${LOG_LIMIT} Lines)"
  

+su -l -c psql postgres <<EOF
 \c pscheduler
 SELECT
     date_trunc('hour', added) AS hour,
@@ -113,7 +113,7 @@
 
 section "New Runs by Hour Added"
 

--- pscheduler-core.orig/diags.raw	2020-10-22 14:31:09.493840421 +0000
+++ pscheduler-core/diags.raw	2020-10-22 14:34:49.475104925 +0000
@@ -119,7 +119,7 @@
 
 section "New Tasks by Hour Added"
 
