PostgreSQL – How to Time SQL Queries Using psql

benchmarkpostgresqlpsql

I would like to benchmark some SQL-queries agains my PostgreSQL database. Is there any way I can time SQL-queries using psql?

Best Answer

Just turn on timing by entering:

\timing