Hi Luis, Thanks for your reply. It’s logging the quires which are taking more than specified time in log_min_duration_statement(). Thanks so much. Regards, Dinesh Chandra |Database administrator (Oracle/PostgreSQL)| Cyient Ltd. Noida. ------------------------------------------------------------------ Mobile: +91-9953975849 | Ext 1078
|dinesh.chandra@xxxxxxxxxx
Plot No. 7, NSEZ, Phase-II ,Noida-Dadri Road, Noida - 201 305,India. From: Luis Fernando Simone [mailto:luis.simone@xxxxxxxxxxxxxxxx]
The parameter "log_directory" on postgresql.conf, you can define where it'll be created. De:
"Dinesh Chandra 12108" <Dinesh.Chandra@xxxxxxxxxx> Thanks for reply. May I know where it will create log?? In pg_log directory or somewhere else. Regards, Dinesh Chandra |Database administrator (Oracle/PostgreSQL)| Cyient Ltd. Noida. ------------------------------------------------------------------ Mobile: +91-9953975849 | Ext 1078
|dinesh.chandra@xxxxxxxxxx
Plot No. 7, NSEZ, Phase-II ,Noida-Dadri Road, Noida - 201 305,India. From:
pgsql-performance-owner@xxxxxxxxxxxxxx [mailto:pgsql-performance-owner@xxxxxxxxxxxxxx]
On Behalf Of ProPAAS DBA set log_min_duration_statement = 300,000 (300,000 ms = 5min)
Causes the duration of each completed statement to be logged if the statement ran for at least the specified number of milliseconds. Setting this to zero prints all statement durations. Minus-one (the default) disables logging statement durations. For example,
if you set it to 250ms then all SQL statements that run 250ms or longer will be logged. Enabling this parameter can be helpful in tracking down unoptimized queries in your applications. Only superusers can change
this setting. On 02/23/2017 09:21 AM, Dinesh Chandra 12108 wrote:
---------------------------------------------------------------
Este E-Mail foi processado por um Filtro Anti-SPAM, e recebeu
um status, caso voc� n�o concorde com o status recebido, clique em um dos links abaixo listado.
Click here to mark email as junk.
---------------------------------------------------------------
|