Postgresql server log queries. The following are queries you can try to get started.