Re: [PERFORM] postgresql query runtime

2011-10-11 Thread Kevin Grittner
Radhya sahal wrote: > how i can read query runtime if i want to run query from java ? Personally, I capture System.currentTimeInMillis() before and after the query, and subtract. In our framework, we have a monitor class to encapsulate that. -Kevin -- Sent via pgsql-performance mailing li

Re: [PERFORM] postgresql query runtime

2011-10-11 Thread Radhya sahal
thank's Kevin how i can read query runtime if i want to run query from java ? regards,,, From: Kevin Grittner To: pgsql-performance group ; Radhya sahal Sent: Tuesday, October 11, 2011 12:15 PM Subject: Re: [PERFORM] postgresql query runtime Radhya

Re: [PERFORM] postgresql query runtime

2011-10-11 Thread Kevin Grittner
Radhya sahal wrote: > I want to know how can i measure runtime query in postgresql if i > use command line psql? \timing on -Kevin -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-pe

Re: [PERFORM] postgresql query runtime

2011-10-11 Thread Szymon Guz
On 11 October 2011 21:13, Szymon Guz wrote: > > > On 11 October 2011 21:08, Radhya sahal wrote: > >> Hi >> I want to know how can i measure runtime query in postgresql if i use >> command line psql? >> not explain rutime for the query such as the runtime which appear in >> pgadmin ? >> such as T

Re: [PERFORM] postgresql query runtime

2011-10-11 Thread Szymon Guz
On 11 October 2011 21:08, Radhya sahal wrote: > Hi > I want to know how can i measure runtime query in postgresql if i use > command line psql? > not explain rutime for the query such as the runtime which appear in > pgadmin ? > such as Total query runtime: 203 ms. > run this in psql: \t rega

Re: [PERFORM] postgresql query runtime

2011-10-11 Thread Pavel Stehule
2011/10/11 Radhya sahal : > Hi > I want to know how can i measure runtime query in postgresql if i use > command line psql? > not explain rutime for the query such as the runtime which appear in pgadmin > ? > such as Total query runtime: 203 ms. > Hello use \timing \? is your friend :) Regards

[PERFORM] postgresql query runtime

2011-10-11 Thread Radhya sahal
Hi I want to know how can i measure runtime query in postgresql if i use command line psql? not explain rutime for the query such as the runtime which appear in pgadmin ? such as Total query runtime: 203 ms.