Measuring timing over many commands in psql

psqltiming

The \timing command finds time needed for each individual update/query. But I have a .sql file with 10000 inserts and I want to see how much time it takes. How can I achieve this?

Best Answer

Use Unix time:

time psql -q -f script.sql