Measuring timing over many commands in psql 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?
Use Unix time:
time psql -q -f script.sql