12108
Cc: ProPAAS DBA ; pgsql-performance@postgresql.org
Subject: Re: [PERFORM] How to log quires which are taking time in PostgreSQL
9.1.
The parameter "log_directory" on postgresql.conf, you can define where it'll be
created.
The name of the log file is def
nce@postgresql.org
Cc: "Dinesh Chandra 12108"
Enviadas: Quinta-feira, 23 de Fevereiro de 2017 13:44:05
Assunto: Re: [PERFORM] How to log quires which are taking time in PostgreSQL
9.1.
Thanks for reply.
May I know where it will create log??
In pg_log directory or somewhere else.
Re
rmance@postgresql.org
Subject: Re: [PERFORM] How to log quires which are taking time in PostgreSQL
9.1.
set log_min_duration_statement = 300,000
(300,000 ms = 5min)
>From the docs:
log_min_duration_statement (integer)
Causes the duration of each completed statement to be logged if the state
set log_min_duration_statement = 300,000
(300,000 ms = 5min)
From the docs:
log_min_duration_statement (integer)
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 d
Dear expert,
I want to log only that queries which are taking around 5 minutes to execute.
I have a database size >1.5T and using PostgreSQL 9.1 with Linux OS.
Thanks in advance.
Regards,
Dinesh Chandra
|Database administrator (Oracle/PostgreSQL)| Cyient Ltd. Noida.