For anything that changes while I wait, such as a running import, I let psql repeat the query for me.
SELECT state, count(*) FROM pg_stat_activity GROUP BY state;
\watch 2
\watch 2 runs the query in the buffer again every two seconds and prints the new result below the old one, with a timestamp. Stop it with Ctrl-C. Without a number the interval is two seconds anyway.
It repeats whatever was run last, so run the query first and type \watch on the next line. Output scrolls rather than redraws, so keep the query short.
Further reading: PostgreSQL documentation: psql