Re: [SQL] Time of executed query

From: "Shoaib Mir" <shoaibmir(at)gmail(dot)com>
To: "Ezequias Rodrigues da Rocha" <ezequias(dot)rocha(at)gmail(dot)com>
Cc: "Bart Degryse" <Bart(dot)Degryse(at)indicator(dot)be>, PostgreSQL <pgsql-sql(at)postgresql(dot)org>, Pgadmin-Support <pgadmin-support(at)postgresql(dot)org>
Subject: Re: [SQL] Time of executed query
Date: 2007-03-06 13:59:49
Message-ID: bf54be870703060559x7cb44b94x1d935ae4b741ef15@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support pgsql-sql

EXPLAIN ANALYZE does give the query execution time at the end of its output.

--
Shoaib Mir
EnterpriseDB (www.enterprisedb.com)

On 3/6/07, Ezequias Rodrigues da Rocha <ezequias(dot)rocha(at)gmail(dot)com> wrote:
>
> EXPLAIN ANALYZE Is perfect but i have no idea of how to use it. My
> resultset is retrieving my rows.
>
> Another question that cames with the Analyze. PgAdmin return the time
> to retrieve the data or all time to fill the grid on the "SQL Editor".
>
> --
> Ezequias Rodrigues da Rocha
> http://ezequiasrocha.blogspot.com/
> use Mozilla Firefox:http://br.mozdev.org/firefox/
>
>
> 2007/3/6, Shoaib Mir <shoaibmir(at)gmail(dot)com>:
> > Did you try EXPLAIN ANALYZE <SQL Query>?
> >
> > ---
> > Shoaib Mir
> > EnterpriseDB (www.enterprisedb.com)
> >
> >
> > On 3/6/07, Ezequias Rodrigues da Rocha <ezequias(dot)rocha(at)gmail(dot)com> wrote:
> > > I preffer that the database give me this information. I don't know if
> > > it is possible becouse if we retrieve many rows and if we want to put
> > > this result in a new column the same time will be replicated many
> > > times and consuming more processing.
> > >
> > > Any other suggestion ?
> > > Ezequias
> > >
> > > 2007/3/6, Bart Degryse <Bart(dot)Degryse(at)indicator(dot)be>:
> > > >
> > > >
> > > > note the time just before your operation starts
> > > > note the time just after it ends
> > > > show timeafter - timebefore
> > > >
> > > > >>> "Ezequias Rodrigues da Rocha" <ezequias(dot)rocha(at)gmail(dot)com >
> 2007-03-06
> > > > 14:20 >>>
> > > >
> > > > Hi list,
> > > >
> > > > It is possible to retrieve the time of a SQL statement leads to
> > > > execute ? I would like to put in my application how much time each
> > > > operation leads to finish.
> > > >
> > > > Any suggestion ?
> > > >
> > > > --
> > > > Ezequias Rodrigues da Rocha
> > > > http://ezequiasrocha.blogspot.com/
> > > > use Mozilla Firefox: http://br.mozdev.org/firefox/
> > > >
> > > > ---------------------------(end of
> > > > broadcast)---------------------------
> > > > TIP 5: don't forget to increase your free space map settings
> > > >
> > >
> > >
> > > --
> > > Ezequias Rodrigues da Rocha
> > > http://ezequiasrocha.blogspot.com/
> > > use Mozilla Firefox:http://br.mozdev.org/firefox/
> > >
> > > ---------------------------(end of
> > broadcast)---------------------------
> > > TIP 5: don't forget to increase your free space map settings
> > >
> >
> >
>

In response to

Browse pgadmin-support by date

  From Date Subject
Next Message Bart Degryse 2007-03-06 14:01:31 Re: Time of executed query
Previous Message Ezequias Rodrigues da Rocha 2007-03-06 13:55:23 Re: [SQL] Time of executed query

Browse pgsql-sql by date

  From Date Subject
Next Message Bart Degryse 2007-03-06 14:01:31 Re: Time of executed query
Previous Message A. Kretschmer 2007-03-06 13:56:36 Re: convert to a string