Re: Measuring statement runtime?

From: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Measuring statement runtime?
Date: 2007-02-07 18:41:06
Message-ID: 20070207184106.GA31198@phlogiston.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Wed, Feb 07, 2007 at 09:00:32AM -0800, Andrew Edson wrote:
> What is the command I should be looking for to measure the
> runtime on my statements?

In psql, use \timing.

In your postgresql.conf file, you can set
log_min_duration_statement=0.

You can also use EXPLAIN ANALYSE to see the full execution plan, plus
information about how long each step _actually_ takes.

A

--
Andrew Sullivan | ajs(at)crankycanuck(dot)ca
Users never remark, "Wow, this software may be buggy and hard
to use, but at least there is a lot of code underneath."
--Damien Katz

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tony Grant 2007-02-07 20:13:15 Re: [RFC] mysql compatibility project
Previous Message Andrew Edson 2007-02-07 17:00:32 Measuring statement runtime?