From: Rodrigo De León <rdeleonp@gmail.com>
To: PostgreSQL <pgsql-sql@postgresql.org>
To: Pgadmin-Support <pgadmin-support@postgresql.org>
Subject: Re: [SQL] Time of executed query
Date: Tue, 6 Mar 2007 10:37:03 -0500
Message-ID: <a55915760703060737o5a399afeo4e44a487ea72d464@mail.gmail.com> (raw)
In-Reply-To: <55c095e90703060520s3e4a1feej65f56cee46fd6700@mail.gmail.com>
References: <55c095e90703060520s3e4a1feej65f56cee46fd6700@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: rdeleonp@gmail.com, pgadmin-support@postgresql.org
Subject: Re: [SQL] Time of executed query
In-Reply-To: <a55915760703060737o5a399afeo4e44a487ea72d464@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox