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?
Measuring timing over many commands in psql
psqltiming
Related Question
- pg_dump Restore – Using psql with –disable-triggers
- How to Erase PostgreSQL Database Using psql
- PostgreSQL Logging – How to Log psql Time and Statements to a Text File
- Postgresql – Shell script – psql run multiple statements from a variable one by one in one transaction
- PostgreSQL – Handling Reckless Behavior of psql \e
Best Answer
Use Unix
time
: