Skip site navigation (1) Skip section navigation (2)

Re: How to time several queries?

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: nd02tsk(at)student(dot)hig(dot)se
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: How to time several queries?
Date: 2004-10-18 18:11:27
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
nd02tsk(at)student(dot)hig(dot)se wrote:

>I posted this on the general list but think it would be more appropriate
>here. Sorry.
>I know it is possible to time isolated queries through the settting of the
>\timing option in psql. This makes PgSQL report the time it took to
>perform one operation.
>I would like to know how one can get a time summary of many operations, if
>it is at all possible.

You can turn on statement and duration logging in the postgresql.conf

>Thank you.
>---------------------------(end of broadcast)---------------------------
>TIP 4: Don't 'kill -9' the postmaster

Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC and S/JDBC
Postgresql support, programming shared hosting and dedicated hosting.
+1-503-667-4564 - jd(at)commandprompt(dot)com -
PostgreSQL Replicator -- production quality replication for PostgreSQL

In response to

pgsql-performance by date

Next:From: nd02tskDate: 2004-10-18 18:28:24
Subject: How to time several queries?
Previous:From: Rod DuttonDate: 2004-10-18 18:01:25
Subject: Queries slow using stored procedures

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group