Re: [HACKERS] is possible enforce \timing on from command line

2012-12-17 Thread Erik Rijkers
On Mon, December 17, 2012 09:54, Pavel Stehule wrote:
> Helllo
>
> I try to search simple solution and I didn't find anything. It is possible?
>

Perhaps not strictly 1 commandline but I often use this:

echo '\timing on \\ select 1+2' | psql



Erik Rijkers



-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers


Re: [HACKERS] is possible enforce \timing on from command line

2012-12-17 Thread classical_89


postgres=# \timing
Timing is on.
postgres=# SELECT now();
now

 2012-12-17 15:56:39.655+07
(1 row)


Time: 11.429 ms
postgres=#





--
View this message in context: 
http://postgresql.1045698.n5.nabble.com/is-possible-enforce-timing-on-from-command-line-tp5736858p5736860.html
Sent from the PostgreSQL - hackers mailing list archive at Nabble.com.


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers


[HACKERS] is possible enforce \timing on from command line

2012-12-17 Thread Pavel Stehule
Helllo

I try to search simple solution and I didn't find anything. It is possible?

Regards

Pavel Stehule


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers