From: Andrew Sullivan <ajs@crankycanuck.ca>
To: pgsql-admin@postgresql.org
Subject: Re: Measuring statement runtime?
Date: Wed, 7 Feb 2007 13:41:06 -0500
Message-ID: <20070207184106.GA31198@phlogiston.dyndns.org> (raw)
In-Reply-To: <95626.55484.qm@web34201.mail.mud.yahoo.com>
References: <95626.55484.qm@web34201.mail.mud.yahoo.com>
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@crankycanuck.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
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: ajs@crankycanuck.ca
Subject: Re: Measuring statement runtime?
In-Reply-To: <20070207184106.GA31198@phlogiston.dyndns.org>
References: <95626.55484.qm@web34201.mail.mud.yahoo.com> <20070207184106.GA31198@phlogiston.dyndns.org>
* 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