From: Qingqing Zhou <zhouqq@cs.toronto.edu>
To: pgsql-performance@postgresql.org
Subject: Re: Logging SQL queries to optimize them ?
Date: Sun, 2 Apr 2006 22:45:34 +0800
Message-ID: <e0oo2d$2r7a$1@news.hub.org> (raw)
References: <e0859o$ea5$1@news.hub.org>
"Bruno Baguette" <pgsql-ml@baguette.net> wrote
>
>
> Is there a way to log all SQL queries, with the date/time when they were
> launched, and the cost of that query (if this is possible) in order to see
> which queries need to be optimized ?
>
See if log_statement, log_statement_stats parameters can help you. Also,
EXPLAIN ANALYZE can help you more on the target query.
Regards,
Qingqing
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-performance@postgresql.org
Cc: zhouqq@cs.toronto.edu
Subject: Re: Logging SQL queries to optimize them ?
In-Reply-To: <e0oo2d$2r7a$1@news.hub.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