From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | Chris <dmagick(at)gmail(dot)com> |
Cc: | MaRCeLO PeReiRA <gandalf_mp(at)yahoo(dot)com(dot)br>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Log Slow Queries |
Date: | 2006-04-04 05:25:18 |
Message-ID: | 20060404052518.GB32226@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Tue, Apr 04, 2006 at 12:25:09PM +1000, Chris wrote:
> MaRCeLO PeReiRA wrote:
> >Hi Guys,
> >
> >Is there a feature in PostgreSQL like
> >"--log-slow-queries"(MySQL) ???
>
> Unfortunately not.
>
> What you can do is edit your postgresql.conf file and set:
>
> log_min_duration_statement
You can also set it per connection:
test=# set log_min_duration_statement =1;
SET
If you only want it some times but not others.
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.
From | Date | Subject | |
---|---|---|---|
Next Message | Martijn van Oosterhout | 2006-04-04 05:32:40 | Re: Create an index with a sort condition |
Previous Message | Ravi Kumar | 2006-04-04 05:21:59 | Not able to install PostgreSQL in my machine |