Is it possible to get a history of queries made in postgres? and is it be possible to get the time it took for each query? I\'m currently trying to identify slow queries in the
If you want to identify slow queries, than the method is to use log_min_duration_statement setting (in postgresql.conf or set per-database with ALTER DATABASE SET).
When you logged the data, you can then use grep or some specialized tools - like pgFouine or my own analyzer - which lacks proper docs, but despite this - runs quite well.