Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm using the psql client on a linux machine, and I always want timing to be on. Is there a config file or setting somewhere to do this? I am currently always starting my session with: \timing

share|improve this question

1 Answer 1

up vote 8 down vote accepted

Create a file called ~/.psqlrc and add the line:

\timing

Read the psql man page for more details.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.