Re: How to get the used time when operate a select query?

From: Oskar Berggren <beo(at)sgs(dot)o(dot)se>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: How to get the used time when operate a select query?
Date: 2002-06-27 10:01:09
Message-ID: 3D1AE265.6000502@sgs.o.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

$B2+=ULP wrote:
> How can I get the time which a select query use?
> thank you!
>
>

If you are using version 7.2 or later, try the command

EXPLAIN ANALYZE <any query>

This will perform the query (even if it is a DELETE FROM <table>!)
and show the actual time.

/Oskar

Ps. You should check what your mail client puts in the from field
of you mail. It is quite unreadable...

--
/----------------------------------------------------------------------\
| Oskar Berggren beo(at)sgs(dot)o(dot)se |
| Network and Software Engineer SGS Datanätgrupp |
| Gothenburg, Sweden |
\----------------------------------------------------------------------/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Nadim Bitar 2002-06-27 10:10:07 Re: Large Objects
Previous Message 黄春茂 2002-06-27 09:10:13 How to get the used time when operate a select query?