Thread: Is the "x ms" info reliable?
<span style="font-family: Arial; font-size: 13px;">In the query window's bottom-right corner, after running a query, it sayshow long it took. It's ambiguous how exactly this is is calculated. It seems to not take into account the lag from theslow-ass SSH tunnel.<br /><br />Basically, I wanna know how fast the command *actually* is. Not how long it took to runand then get delivered to pgAdmin via the incredibly sluggish SSH tunnel. The actual, in-app query is run on the samemachine, and should be much, much faster.<br /><br />Is it possible to get this "real time" rather than the "pointlesstime"?<br /><br />PS: I hate the command-line psql tool and I don't want anything to do with it.<br /></span>
On 17/01/2015 20:13, hushthatbush@hushmail.com wrote: > In the query window's bottom-right corner, after running a query, it > says how long it took. It's ambiguous how exactly this is is calculated. > It seems to not take into account the lag from the slow-ass SSH tunnel. > > Basically, I wanna know how fast the command *actually* is. Not how long > it took to run and then get delivered to pgAdmin via the incredibly > sluggish SSH tunnel. The actual, in-app query is run on the same > machine, and should be much, much faster. > > Is it possible to get this "real time" rather than the "pointless time"? Do this - explain analyze (your query) - to get the execution time. Ray. -- Raymond O'Donnell :: Galway :: Ireland rod@iol.ie
I reserve the right to fantasize. Whether or not you
wish to share my fantasy is entirely up to you.

Folk Alley - All Folk - 24 Hours a day
www.folkalley.com
From: "hushthatbush@hushmail.com" <hushthatbush@hushmail.com>
To: "pgadmin-support@postgresql.org" <pgadmin-support@postgresql.org>
Sent: Saturday, January 17, 2015 3:13 PM
Subject: [pgadmin-support] Is the "x ms" info reliable?
Basically, I wanna know how fast the command *actually* is. Not how long it took to run and then get delivered to pgAdmin via the incredibly sluggish SSH tunnel. The actual, in-app query is run on the same machine, and should be much, much faster.
Is it possible to get this "real time" rather than the "pointless time"?
PS: I hate the command-line psql tool and I don't want anything to do with it.
On Sat, Jan 17, 2015 at 8:13 PM, <hushthatbush@hushmail.com> wrote: > In the query window's bottom-right corner, after running a query, it says > how long it took. It's ambiguous how exactly this is is calculated. It seems > to not take into account the lag from the slow-ass SSH tunnel. > > Basically, I wanna know how fast the command *actually* is. Not how long it > took to run and then get delivered to pgAdmin via the incredibly sluggish > SSH tunnel. The actual, in-app query is run on the same machine, and should > be much, much faster. > > Is it possible to get this "real time" rather than the "pointless time"? It's not "pointless time", it's the time taken to execute the query and for libpq to tell pgAdmin it's done. That is typically what people want when developing queries that are used in other apps - they need to see how fast PostgreSQL actually executed it, but not the amount of time taken to transfer the data to the client which can vary wildly from client app to client app, especially if running through an SSH tunnel. -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company
<p><font face="sans-serif" size="2">When I have pgAdmin, my app, and PG all running on the same machine, pgAdmin reportedquery times are one or two orders of magnitude slower than times for the same query reported by turning on statementlogging.<br /></font><br /><br /><img alt="Inactive hide details for Dave Page ---01/19/2015 03:58:07 AM---On Sat,Jan 17, 2015 at 8:13 PM, <hushthatbush@hushmail.com> w" border="0" height="16" src="cid:1__=09BBF741DFC72E168f9e8a93d@mck.us.ray.com"width="16" /><font color="#424282" face="sans-serif" size="2">DavePage ---01/19/2015 03:58:07 AM---On Sat, Jan 17, 2015 at 8:13 PM, <hushthatbush@hushmail.com> wrote:> In the query window's bottom-</font><br /><br /><font color="#5F5F5F" face="sans-serif" size="1">From: </font><fontface="sans-serif" size="1">Dave Page <dpage@pgadmin.org></font><br /><font color="#5F5F5F" face="sans-serif"size="1">To: </font><font face="sans-serif" size="1">hushthatbush@hushmail.com</font><br /><font color="#5F5F5F"face="sans-serif" size="1">Cc: </font><font face="sans-serif" size="1">"pgadmin-support@postgresql.org" <pgadmin-support@postgresql.org></font><br/><font color="#5F5F5F" face="sans-serif" size="1">Date: </font><font face="sans-serif"size="1">01/19/2015 03:58 AM</font><br /><font color="#5F5F5F" face="sans-serif" size="1">Subject: </font><fontface="sans-serif" size="1">Re: [pgadmin-support] Is the "x ms" info reliable?</font><br /><font color="#5F5F5F"face="sans-serif" size="1">Sent by: </font><font face="sans-serif" size="1">pgadmin-support-owner@postgresql.org</font><br/><hr align="left" noshade size="2" style="color:#8091A5; " width="100%"/><br /><br /><br /><tt><font size="2">On Sat, Jan 17, 2015 at 8:13 PM, <hushthatbush@hushmail.com> wrote:<br/> > In the query window's bottom-right corner, after running a query, it says<br /> > how long it took. It'sambiguous how exactly this is is calculated. It seems<br /> > to not take into account the lag from the slow-ass SSHtunnel.<br /> ><br /> > Basically, I wanna know how fast the command *actually* is. Not how long it<br /> > tookto run and then get delivered to pgAdmin via the incredibly sluggish<br /> > SSH tunnel. The actual, in-app queryis run on the same machine, and should<br /> > be much, much faster.<br /> ><br /> > Is it possible to getthis "real time" rather than the "pointless time"?<br /><br /> It's not "pointless time", it's the time taken to executethe query<br /> and for libpq to tell pgAdmin it's done. That is typically what people<br /> want when developingqueries that are used in other apps - they need<br /> to see how fast PostgreSQL actually executed it, but notthe amount of<br /> time taken to transfer the data to the client which can vary wildly<br /> from client app to clientapp, especially if running through an SSH<br /> tunnel.<br /><br /> -- <br /> Dave Page<br /> Blog: </font></tt><tt><fontsize="2"><a href="http://pgsnake.blogspot.com">http://pgsnake.blogspot.com</a></font></tt><tt><fontsize="2"><br /> Twitter: @pgsnake<br/><br /> EnterpriseDB UK: </font></tt><tt><font size="2"><a href="http://www.enterprisedb.com">http://www.enterprisedb.com</a></font></tt><tt><fontsize="2"><br /> The Enterprise PostgreSQLCompany<br /><br /><br /> -- <br /> Sent via pgadmin-support mailing list (pgadmin-support@postgresql.org)<br />To make changes to your subscription:<br /></font></tt><tt><font size="2"><a href="http://www.postgresql.org/mailpref/pgadmin-support">http://www.postgresql.org/mailpref/pgadmin-support</a></font></tt><tt><font size="2"><br/></font></tt><br />
When I have pgAdmin, my app, and PG all running on the same machine, pgAdmin reported query times are one or two orders of magnitude slower than times for the same query reported by turning on statement logging.
Dave Page ---01/19/2015 03:58:07 AM---On Sat, Jan 17, 2015 at 8:13 PM, <hushthatbush@hushmail.com> wrote: > In the query window's bottom-
From: Dave Page <dpage@pgadmin.org>
To: hushthatbush@hushmail.com
Cc: "pgadmin-support@postgresql.org" <pgadmin-support@postgresql.org>
Date: 01/19/2015 03:58 AM
Subject: Re: [pgadmin-support] Is the "x ms" info reliable?
Sent by: pgadmin-support-owner@postgresql.org
On Sat, Jan 17, 2015 at 8:13 PM, <hushthatbush@hushmail.com> wrote:
> In the query window's bottom-right corner, after running a query, it says
> how long it took. It's ambiguous how exactly this is is calculated. It seems
> to not take into account the lag from the slow-ass SSH tunnel.
>
> Basically, I wanna know how fast the command *actually* is. Not how long it
> took to run and then get delivered to pgAdmin via the incredibly sluggish
> SSH tunnel. The actual, in-app query is run on the same machine, and should
> be much, much faster.
>
> Is it possible to get this "real time" rather than the "pointless time"?
It's not "pointless time", it's the time taken to execute the query
and for libpq to tell pgAdmin it's done. That is typically what people
want when developing queries that are used in other apps - they need
to see how fast PostgreSQL actually executed it, but not the amount of
time taken to transfer the data to the client which can vary wildly
from client app to client app, especially if running through an SSH
tunnel.
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
--
Sent via pgadmin-support mailing list (pgadmin-support@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-support
--
Attachment
<p><font face="sans-serif" size="2">Is there an echo in here?</font><br /><br /><font face="sans-serif" size="2">To be fair,Dave's point is that times from a client's perspective will necessarily be longer than those from inside the server. That doesn't account for an order of magnitude's difference though, especially when the connection is local. I toothink that pgAdmin is counting the time to traverse the result set, but that's purely speculation.<br /></font><br /><br/><img alt="Inactive hide details for Guillaume Lelarge ---01/19/2015 11:36:44 AM---2015-01-19 16:26 GMT+01:00 RichardD Levine <Richard_D_" border="0" height="16" src="cid:1__=09BBF741DFCEDF6A8f9e8a93d@mck.us.ray.com" width="16"/><font color="#424282" face="sans-serif" size="2">Guillaume Lelarge ---01/19/2015 11:36:44 AM---2015-01-19 16:26GMT+01:00 Richard D Levine <Richard_D_Levine@raytheon.com>: > When I have pgAdmin,</font><br /><br /><fontcolor="#5F5F5F" face="sans-serif" size="1">From: </font><font face="sans-serif" size="1">Guillaume Lelarge <guillaume@lelarge.info></font><br/><font color="#5F5F5F" face="sans-serif" size="1">To: </font><font face="sans-serif"size="1">Richard D Levine <Richard_D_Levine@raytheon.com></font><br /><font color="#5F5F5F" face="sans-serif"size="1">Cc: </font><font face="sans-serif" size="1">Dave Page <dpage@pgadmin.org>, hushthatbush@hushmail.com,"pgadmin-support@postgresql.org" <pgadmin-support@postgresql.org>, pgadmin-support-owner@postgresql.org</font><br/><font color="#5F5F5F" face="sans-serif" size="1">Date: </font><font face="sans-serif"size="1">01/19/2015 11:36 AM</font><br /><font color="#5F5F5F" face="sans-serif" size="1">Subject: </font><fontface="sans-serif" size="1">Re: [pgadmin-support] Is the "x ms" info reliable?</font><br /><font color="#5F5F5F"face="sans-serif" size="1">Sent by: </font><font face="sans-serif" size="1">pgadmin-support-owner@postgresql.org</font><br/><hr align="left" noshade size="2" style="color:#8091A5; " width="100%"/><br /><br /><br /><font face="serif" size="3">2015-01-19 16:26 GMT+01:00 Richard D Levine <</font><a href="mailto:Richard_D_Levine@raytheon.com"target="_blank"><font color="#0000FF" face="serif" size="3"><u>Richard_D_Levine@raytheon.com</u></font></a><fontface="serif" size="3">>:</font><ul style="padding-left: 9pt"><fontface="sans-serif" size="3">When I have pgAdmin, my app, and PG all running on the same machine, pgAdmin reportedquery times are one or two orders of magnitude slower than times for the same query reported by turning on statementlogging.</font><font face="serif" size="3"><br /></font></ul><br /><br /><font face="serif" size="3">Yeah, I agreewith the OP. I'm pretty sure the time the query tool reports includes the display time. I didn't check in the code,but that was always my view of the time. Doesn't mean it is useless, but pretty much like it.<br /></font><ul style="padding-left:9pt"><font face="serif" size="3"><br /></font><img alt="Inactive hide details for Dave Page ---01/19/201503:58:07 AM---On Sat, Jan 17, 2015 at 8:13 PM, <hushthatbush@hushmail.com> w" height="16" src="cid:1__=09BBF741DFCEDF6A8f9e8a93d@mck.us.ray.com"width="16" /><font color="#424282" face="sans-serif" size="3">DavePage ---01/19/2015 03:58:07 AM---On Sat, Jan 17, 2015 at 8:13 PM, <</font><a href="mailto:hushthatbush@hushmail.com"target="_blank"><font color="#0000FF" face="sans-serif" size="3"><u>hushthatbush@hushmail.com</u></font></a><fontcolor="#424282" face="sans-serif" size="3">> wrote: > In thequery window's bottom-</font><font face="serif" size="3"><br /></font><font color="#5F5F5F" face="sans-serif" size="1"><br/> From: </font><font face="sans-serif" size="1">Dave Page <</font><a href="mailto:dpage@pgadmin.org" target="_blank"><fontcolor="#0000FF" face="sans-serif" size="1"><u>dpage@pgadmin.org</u></font></a><font face="sans-serif"size="1">></font><font color="#5F5F5F" face="sans-serif" size="1"><br /> To: </font><a href="mailto:hushthatbush@hushmail.com"target="_blank"><font color="#0000FF" face="sans-serif" size="1"><u>hushthatbush@hushmail.com</u></font></a><fontcolor="#5F5F5F" face="sans-serif" size="1"><br /> Cc: </font><fontface="sans-serif" size="1">"</font><a href="mailto:pgadmin-support@postgresql.org" target="_blank"><font color="#0000FF"face="sans-serif" size="1"><u>pgadmin-support@postgresql.org</u></font></a><font face="sans-serif" size="1">"<</font><a href="mailto:pgadmin-support@postgresql.org" target="_blank"><font color="#0000FF" face="sans-serif"size="1"><u>pgadmin-support@postgresql.org</u></font></a><font face="sans-serif" size="1">></font><fontcolor="#5F5F5F" face="sans-serif" size="1"><br /> Date: </font><font face="sans-serif" size="1">01/19/201503:58 AM</font><font color="#5F5F5F" face="sans-serif" size="1"><br /> Subject: </font><font face="sans-serif"size="1">Re: [pgadmin-support] Is the "x ms" info reliable?</font><font color="#5F5F5F" face="sans-serif"size="1"><br /> Sent by: </font><a href="mailto:pgadmin-support-owner@postgresql.org" target="_blank"><fontcolor="#0000FF" face="sans-serif" size="1"><u>pgadmin-support-owner@postgresql.org</u></font></a><br/><hr align="left" noshade size="2" width="100%" /><br/><font face="serif" size="3"><br /><br /></font><tt><font size="3"><br /> On Sat, Jan 17, 2015 at 8:13 PM, <</font></tt><ahref="mailto:hushthatbush@hushmail.com" target="_blank"><tt><font color="#0000FF" size="3"><u>hushthatbush@hushmail.com</u></font></tt></a><tt><fontsize="3">> wrote:<br /> > In the query window's bottom-rightcorner, after running a query, it says<br /> > how long it took. It's ambiguous how exactly this is is calculated.It seems<br /> > to not take into account the lag from the slow-ass SSH tunnel.<br /> ><br /> > Basically,I wanna know how fast the command *actually* is. Not how long it<br /> > took to run and then get deliveredto pgAdmin via the incredibly sluggish<br /> > SSH tunnel. The actual, in-app query is run on the same machine,and should<br /> > be much, much faster.<br /> ><br /> > Is it possible to get this "real time" rather thanthe "pointless time"?<br /><br /> It's not "pointless time", it's the time taken to execute the query<br /> and for libpqto tell pgAdmin it's done. That is typically what people<br /> want when developing queries that are used in other apps- they need<br /> to see how fast PostgreSQL actually executed it, but not the amount of<br /> time taken to transferthe data to the client which can vary wildly<br /> from client app to client app, especially if running through anSSH<br /> tunnel.<br /><br /> -- <br /> Dave Page<br /> Blog: </font></tt><a href="http://pgsnake.blogspot.com/" target="_blank"><tt><fontcolor="#0000FF" size="3"><u>http://pgsnake.blogspot.com</u></font></tt></a><tt><font size="3"><br/> Twitter: @pgsnake<br /><br /> EnterpriseDB UK: </font></tt><a href="http://www.enterprisedb.com/" target="_blank"><tt><fontcolor="#0000FF" size="3"><u>http://www.enterprisedb.com</u></font></tt></a><tt><font size="3"><br/> The Enterprise PostgreSQL Company<br /><br /><br /> -- <br /> Sent via pgadmin-support mailing list (</font></tt><ahref="mailto:pgadmin-support@postgresql.org" target="_blank"><tt><font color="#0000FF" size="3"><u>pgadmin-support@postgresql.org</u></font></tt></a><tt><fontsize="3">)<br /> To make changes to your subscription:</font></tt><tt><fontcolor="#0000FF" size="3"><u><br /></u></font></tt><a href="http://www.postgresql.org/mailpref/pgadmin-support"target="_blank"><tt><font color="#0000FF" size="3"><u>http://www.postgresql.org/mailpref/pgadmin-support</u></font></tt></a><fontface="serif" size="3"><br /></font></ul><br/><font face="serif" size="3"><br /><br /><br /> -- </font><br /><font face="serif" size="3">Guillaume.</font><br/><font face="serif" size="3"> </font><a href="http://blog.guillaume.lelarge.info/" target="_blank"><fontcolor="#0000FF" face="serif" size="3"><u>http://blog.guillaume.lelarge.info</u></font></a><br /><fontface="serif" size="3"> </font><a href="http://www.dalibo.com/" target="_blank"><font color="#0000FF" face="serif"size="3"><u>http://www.dalibo.com</u></font></a><br />
Is there an echo in here?
To be fair, Dave's point is that times from a client's perspective will necessarily be longer than those from inside the server. That doesn't account for an order of magnitude's difference though, especially when the connection is local. I too think that pgAdmin is counting the time to traverse the result set, but that's purely speculation.
Guillaume Lelarge ---01/19/2015 11:36:44 AM---2015-01-19 16:26 GMT+01:00 Richard D Levine <Richard_D_Levine@raytheon.com>: > When I have pgAdmin,
From: Guillaume Lelarge <guillaume@lelarge.info>
To: Richard D Levine <Richard_D_Levine@raytheon.com>
Cc: Dave Page <dpage@pgadmin.org>, hushthatbush@hushmail.com, "pgadmin-support@postgresql.org" <pgadmin-support@postgresql.org>, pgadmin-support-owner@postgresql.org
Date: 01/19/2015 11:36 AM
Subject: Re: [pgadmin-support] Is the "x ms" info reliable?
Sent by: pgadmin-support-owner@postgresql.org
2015-01-19 16:26 GMT+01:00 Richard D Levine <Richard_D_Levine@raytheon.com>:When I have pgAdmin, my app, and PG all running on the same machine, pgAdmin reported query times are one or two orders of magnitude slower than times for the same query reported by turning on statement logging.
Yeah, I agree with the OP. I'm pretty sure the time the query tool reports includes the display time. I didn't check in the code, but that was always my view of the time. Doesn't mean it is useless, but pretty much like it.
Dave Page ---01/19/2015 03:58:07 AM---On Sat, Jan 17, 2015 at 8:13 PM, <hushthatbush@hushmail.com> wrote: > In the query window's bottom-
From: Dave Page <dpage@pgadmin.org>
To: hushthatbush@hushmail.com
Cc: "pgadmin-support@postgresql.org" <pgadmin-support@postgresql.org>
Date: 01/19/2015 03:58 AM
Subject: Re: [pgadmin-support] Is the "x ms" info reliable?
Sent by: pgadmin-support-owner@postgresql.org
On Sat, Jan 17, 2015 at 8:13 PM, <hushthatbush@hushmail.com> wrote:
> In the query window's bottom-right corner, after running a query, it says
> how long it took. It's ambiguous how exactly this is is calculated. It seems
> to not take into account the lag from the slow-ass SSH tunnel.
>
> Basically, I wanna know how fast the command *actually* is. Not how long it
> took to run and then get delivered to pgAdmin via the incredibly sluggish
> SSH tunnel. The actual, in-app query is run on the same machine, and should
> be much, much faster.
>
> Is it possible to get this "real time" rather than the "pointless time"?
It's not "pointless time", it's the time taken to execute the query
and for libpq to tell pgAdmin it's done. That is typically what people
want when developing queries that are used in other apps - they need
to see how fast PostgreSQL actually executed it, but not the amount of
time taken to transfer the data to the client which can vary wildly
from client app to client app, especially if running through an SSH
tunnel.
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
--
Sent via pgadmin-support mailing list (pgadmin-support@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-support
--
Guillaume.
http://blog.guillaume.lelarge.info
http://www.dalibo.com
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company