May 2018
Intermediate to advanced
576 pages
30h 25m
English
As the waiting column is already Boolean, you can safely omit the = true part from the query and simply write the following:
SELECT datname, usename, query FROM pg_stat_activityWHERE waiting;