Re: Time of executed query - Mailing list pgsql-sql

From Rodrigo De León
Subject Re: Time of executed query
Date
Msg-id a55915760703060737o5a399afeo4e44a487ea72d464@mail.gmail.com
Whole thread Raw
In response to Time of executed query  ("Ezequias Rodrigues da Rocha" <ezequias.rocha@gmail.com>)
List pgsql-sql
On 3/6/07, Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.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/

Use psql:

t=# \timing
t=# SELECT * FROM generate_series(1,100000) WHERE random() = 0.234;generate_series
-----------------
(0 rows)

Time: 125.000 ms
t=#

See:

http://www.postgresql.org/docs/8.2/static/app-psql.html


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: Selecting exactly one row for each column value
Next
From: "Rodrigo De León"
Date:
Subject: Re: Time of executed query