Re: [SQL] Time of executed query

From: Rodrigo De León <rdeleonp(at)gmail(dot)com>
To: 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 15:39:25
Message-ID: a55915760703060739p7e5396fat996cf4ca806f2c5e@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support pgsql-sql

On 3/6/07, Ezequias Rodrigues da Rocha <ezequias(dot)rocha(at)gmail(dot)com> wrote:
> 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/

Sorry, didn't see the app part.

Use clock_timestamp().

See:

http://www.postgresql.org/docs/8.2/static/functions-datetime.html#FUNCTIONS-DATETIME-CURRENT

In response to

Browse pgadmin-support by date

  From Date Subject
Next Message Albin Blaschka 2007-03-06 15:41:14 Re: Display of error message
Previous Message Rodrigo De León 2007-03-06 15:37:03 Re: [SQL] Time of executed query

Browse pgsql-sql by date

  From Date Subject
Next Message Florian Weimer 2007-03-06 15:46:29 Re: Selecting exactly one row for each column value
Previous Message Rodrigo De León 2007-03-06 15:37:03 Re: [SQL] Time of executed query