check history along with dates for queries in Postgres
PostgreSQL doesn't remember the times when queries are run.
If you need that information, set log_statement = 'all' and include %m in log_line_prefix. Then the queries and their time are written to the log file.