| From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| To: | Himanshu Baweja <himanshubaweja(at)yahoo(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Logging query plan for queries |
| Date: | 2005-06-06 16:43:41 |
| Message-ID: | 200506061643.j56Ghfk25790@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Himanshu Baweja wrote:
> when i enable debug_print_plan and
> debug_pretty_print...
> query plans are written to log file for all
> queries....(3 gb of logs in 3 mins) which is of course
> diffcult to analyze and consume too much resources....
>
> is it possible to log plans for only the queries whose
> duration was more than a particular value or something
> like that... (e.g. log_min_duration_statement)....
Sure, see log_min_duration_statement.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
| From | Date | Subject | |
|---|---|---|---|
| Next Message | David Fetter | 2005-06-06 17:04:20 | Re: which commands under PostgreSQL do the similar func provided by "show processlist" under mysql |
| Previous Message | Himanshu Baweja | 2005-06-06 16:29:44 | Logging query plan for queries |